Answer the question
In order to leave comments, you need to log in
How to set external link in Doctrine?
Now it works like this:
$query = $this->getEntityManager()->createQueryBuilder()
->from('AppBundle:Offers', 'offer')
->leftJoin('AppBundle:OffersImages', 'image', 'WITH', 'image.offer=offer.id');
image.offer=offer.id
? <?php /* ... */
/**
* @var \AppBundle\Entity\Offers
*
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\Offers")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="offer_id", referencedColumnName="id")
* })
*/
private $offer;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question