What about having something like following? EntityA <1:n> EntityATemperatures <m:n> Temperature
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 23 January 2014 11:18, ibasaw <[email protected]> wrote: > <https://lh3.googleusercontent.com/-w2upAw8Slb4/UuDsFLZy2qI/AAAAAAAABEg/_Z5luYWi1hU/s1600/m2m.jpg> > hi, > > Don't know how to do this ? > > /** > * @ORM\ManyToMany(targetEntity="Temperatures", cascade={"persist", > "merge"}, mappedBy="temperatures") > */ > protected $temperatures; > > /** > * @ORM\ManyToMany(targetEntity="Temperatures", cascade={"persist", > "merge"}, mappedBy="temperatures") > */ > protected $temperatures2; > > /** > * @ORM\ManyToMany(targetEntity="Temperatures", cascade={"persist", > "merge"}, mappedBy="temperatures") > */ > protected $temperatures3; > > > thanks for your help > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/groups/opt_out.
