public function __construct() { $this->annotatedIdentitiesEntities = new ArrayCollection(); $this->relatedIndexEntities = new ArrayCollection(); }