/** * Constructor * @param string $name */ public function __construct($name = '') { $this->events = new ArrayCollection(); $this->userCalendars = new ArrayCollection(); parent::__construct(); $this->setName($name); }
public function __construct(array $name = []) { $this->images = new ArrayCollection(); $this->userPlaces = new ArrayCollection(); parent::__construct(); $this->setName($name); }