This topic contains 1 reply, has 1 voice, and was last updated by abel 7 years, 7 months ago.
- Topic
Hi all!
I have create some entity and entity config. When I update entity and entity config, it’s run ok.
My entity include:
– Order –1234567891011121314151617181920212223242526272829303132/*** Class Order* @package Tna\Bundle\PosBundle\Entity** @ORM\Table(* name="orocrm_pos_order",* indexes={* @ORM\Index(name="pos_order_id_idx",columns={"order_id"})* }* )* @ORM\HasLifecycleCallbacks()* @Config(* routeName="pos_order_index",* routeView="pos_order_detail",* )* @ORM\Entity*/class Order {/* some field *//*** @var** @ORM\ManyToOne(targetEntity="Tna\Bundle\PosBundle\Entity\Store", cascade={"persist"})* @ORM\JoinColumn(name="store_id", referencedColumnName="store_id")* @ConfigField(* )*/private $store_id;/* get and set function */}– Store –
1234567891011121314151617181920212223242526/*** Class Order* @package Tna\Bundle\PosBundle\Entity** @ORM\Table(* name="orocrm_pos_store"* )* @ORM\HasLifecycleCallbacks()* @Config(* )* @ORM\Entity*/class Store {/*** @var** @ORM\Column(name="store_id", type="string")* @Soap\ComplexType("string", nillable=true)* @ConfigField(* )* @ORM\Id*/private $store_id;/* some field and get&set function */}But when I create segment for Order, I want filter order with some store ID, but in order related entities not have Store entity.
And in Store related entities have Order.
My question is: How can I add entity Store in related entities of Order?
Thanks!
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.