D
D
Dmitry Baskakov2021-07-13 09:34:05
Doctrine ORM
Dmitry Baskakov, 2021-07-13 09:34:05

How to decipher understand phpDoc comment to doctrine?

There is an entity "SipTrunk" of the sip_trunks table
It has a property "$companies"

/**
     * @var ArrayCollection|Companies[]
     *
     * @ORM\ManyToMany(fetch="EXTRA_LAZY", targetEntity="User\Entity\Companies")
     * @ORM\JoinTable(name="rl_sip_trunks_companies",
     *   joinColumns={
     *     @ORM\JoinColumn(name="sip_trunk_id", referencedColumnName="id", nullable=true)
     *   },
     *   inverseJoinColumns={
     *     @ORM\JoinColumn(name="company_id", referencedColumnName="id", nullable=true)
     *   }
     * )
     */
    private $companies;


When trying to get data from the database, there is an eternal download and then a timeout. But I can't figure out why or how to fix it. But first, you need to understand what it all means in a comment.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question