Hi symfonians!
Maybe this is more a Doctrine issue, but I'll try my luck here!
I'm starting up a project with entities pulling data from different servers
(over doctrine connections).
Hopefully I'm wrong, but after spending some time with my best friend
google, it seems to me that the only way working with multiple connections
is by creating a symfony Bundle for each connection, which would result in
being forced in organizing the entities the way databases are structured
rather than organizing entities the way I like
I know that I can assign multiple bundles for a single connection:
entity_managers:
....
custom:
connection: custom
mappings:
AcmeDemoBundle: ~
AcmeStoreBundle: ~
To assign an entity to a custom connection it would be nice to
to specify something like:
/**
* Acme\CustomBundle\Entity\CustomTable
*
* @ORM\Entity
* @ORM\Table(name="custom_table", connection="custom")
or
@ORM\Connection("custom")
Best Regards,
Jose
--
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 "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en