Thank you for all your replies
My current multiple entity manager config looks like this atm:
entity_managers:
default:
connection: conn1
db1:
connection: conn1
mappings:
HelloBundle:
type: annotation
Le 20/01/2011 19:39, Venzon a écrit :
I changed a bit my entity manager configuration:
entity_managers:
conn1:
connection: conn1
mappings:
HelloBundle: { type: annotation }
conn2:
connection: conn2
mappings:
small correction, seems that now (with current config) I can call
every method I create, doesnt matter what is its name
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
I changed a bit my entity manager configuration:
entity_managers:
conn1:
connection: conn1
mappings:
HelloBundle: { type: annotation }
conn2:
connection: conn2
mappings:
HelloBundle: { type: annotation,
I think I know why debuging is making me problems, I have noticed that
some orm cache in always present in my apc cache and is used to map
entities even when config.yml has been changed...
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.co
I did test and removed multiple entity managers leaving only one:
doctrine.orm:
mappings:
HelloBundle: ~
I am still getting same error telling me:
Class Application\HelloBundle\Repository\Test is not a valid entity or
mapped super class.
Maybe I lack some annotations or configuratio
@stof: My orm mapping config can be a problem indeed, I will try to
work on it and will report back
I really have hard time because I have to use multiple databases and
that makes all config things hard, especialy when many aspects of SF2
are new to me :(
--
If you want to report a vulnerability
On Thu, 20 Jan 2011 04:58:50 -0800 (PST), Venzon wrote:
> What will be proper config solution when I have entities connecting
> with several databases in same bundle?
If you need to put sme entities in a database and some others in another
database the proper configuration would be to separate th
What will be proper config solution when I have entities connecting
with several databases in same bundle?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symf
On Thu, 20 Jan 2011 04:40:04 -0800 (PST), Venzon wrote:
> I am testing with mutiple db connections, my config.yml looks like
> this:
>
> doctrine.orm:
> auto_generate_proxy_classes: %kernel.debug%
> auto_generate_hydrator_classes: true
> auto_generate_proxy_classes: true
> proxy_n
I am testing with mutiple db connections, my config.yml looks like
this:
doctrine.orm:
auto_generate_proxy_classes: %kernel.debug%
auto_generate_hydrator_classes: true
auto_generate_proxy_classes: true
proxy_namespace: Proxies
proxy_dir: %kernel.cache_dir%/doctrine/orm/Proxies
On Thu, 20 Jan 2011 04:27:01 -0800 (PST), Venzon wrote:
> When I use fully qualified class name $this-
>>get('doctrine.orm.entity_manager')-
>>>getRepository('Application\HelloBundle\Repository\Test') I get error:
> Class Application\HelloBundle\Repository\Test is not a valid entity or
> mapped su
When I use fully qualified class name $this-
>get('doctrine.orm.entity_manager')-
>>getRepository('Application\HelloBundle\Repository\Test') I get error:
Class Application\HelloBundle\Repository\Test is not a valid entity or
mapped super class.
My repository class looks like this:
http://groups.g
On Thu, 20 Jan 2011 04:09:24 -0800 (PST), Venzon wrote:
> @stof: As you guys mentioned before; when I call entity repository
> by:
> $this->get('doctrine.orm.entity_manager')-
>>getRepository('HelloBundle:Test') I retrieve default repository where
> only magic finders are present, no custom ones.
@stof: As you guys mentioned before; when I call entity repository
by:
$this->get('doctrine.orm.entity_manager')-
>getRepository('HelloBundle:Test') I retrieve default repository where
only magic finders are present, no custom ones.
How can I call then custom "Application\FtravelBundle\Repository\
On Thu, 20 Jan 2011 02:39:00 -0800 (PST), Venzon wrote:
> Thank you for answer, I see now where is a difference.
>
> I have my custom repository for Test entity generated by framework
> (using annotations) in /Application/HelloBundle/Repositories/Test.php
> When I call it from controller by: $th
Thank you for answer, I see now where is a difference.
I have my custom repository for Test entity generated by framework
(using annotations) in /Application/HelloBundle/Repositories/Test.php
When I call it from controller by: $this-
>get('doctrine.orm.entity_manager')->getRepository("Application
It's not a problem of location of the repository class but a problem
of configuration.
Your problem is that getRepository() is returning a default Doctrine
\ORM\EntityRepository class (which only contains find, findBy,
findAll) and not the custom one you created.
You have to explicitly tell what i
18 matches
Mail list logo