I'm looking for an appropriate way to reduce coupling in a messaging bundle 
I'm writing, so that I can easily use it between applications.

Each instance of the Message entity should have a sender and a recipient, 
instanceof Symfony\Component\Security\Core\User\UserInterface, which I can 
require just fine in the setters for the properties. However, in setting up 
the ORM relationships, it seems that I have to specifically set a 
targetEntity (Foo\BarBundle\Entity\User, for example), which means that all 
further uses of the Message entity in different applications will either 
require a code change, or shoehorn them into using a User entity, which 
doesn't seem to me to be in a messaging bundle's scope to require.

Any suggestions/best practices on how I can reduce coupling in this 
instance?

-- 
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 users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to