I am looking for a suitable way to reduce communication in the message set that I am writing for the Symfony2 framework, so that I can easily use it between applications.
Each instance of the message object must have a sender and a receiver instanceof Symfony\Component\Security\Core\User\UserInterface
, which may be required only in the settings for the properties. However, when setting up the ORM relationship, it seems that I should specifically set targetEntity (for example, t21>), which means that all further applications of the Message object in different applications will require either code changes or shoehorn their use of a custom object, which, it seems to me, not included in the message batch area required.
Any suggestions / recommendations for reducing communication in this case?
EDIT: I tried setting a global parameter with an extension and using it in the annotation, something like @ORM\ManyToOne(targetEntity="%my.entity%")
, but it seems that the annotation parser is not converting the parameters because the string was interpreted like a literal, which, of course, failed.
Problemmatic
source share