这仅仅是3次ManyToOne
关系(可能)的Image
实体。 该实体看起来像下面这样:
class Item
{
/**
* @ORM\Id()
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
protected $id;
/**
* @ORM\Column(type="string")
*/
protected $name;
/**
* @ORM\Column(type="text")
*/
protected $description;
/**
* @ORM\ManyToOne(targetEntity="YourNamespace\Entity\Image")
*/
protected $image1;
/**
* @ORM\ManyToOne(targetEntity="YourNamespace\Entity\Image")
*/
protected $image2;
/**
* @ORM\ManyToOne(targetEntity="YourNamespace\Entity\Image")
*/
protected $image3;
/**
* @ORM\Column(type="string")
*/
protected $key;
// ...
}