i have question or problem query syntax. have 2 entity tables related manytomany:
person.php
/** * @orm/manytomany(targetentity="deal", inversedby="persons") * @orm/jointable(name="persons_deals") * / protected $deals; deal.php
/* * @orm/manytomany(targetentity="person", mappedby="deals") * / protected $persons; this creates "extra" table called persons_deals in database. in table "person_id" , "deal_id"
if deal done there (for example):
person_id ---- deal_id 1 -------------- 1 2 -------------- 1 so if want deal_id 1 , persons connected it. kind of query should make?
this covered in documentation.
Comments
Post a Comment