1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
/**
* @ORM\OneToMany(targetEntity="adres\GestionBundle\Entity\Photo", mappedBy="annonce")
*
*
*/
private $photos;
/**
* Add photos
*
* @param \Adres\GestionBundle\Entity\Photo $photos
* @return Annonce
*/
public function addPhoto(\Adres\GestionBundle\Entity\Photo $photos)
{
if($photos->getExtension() == null)
return;
$this->photos[] = $photos;
return $this;
}
/**
* Get photos
*
* @return \Adres\GestionBundle\Entity\Photo
*/
public function getPhotos()
{
return $this->photos;
} |
Partager