public function __construct($name) { $this->name = $name; $this->crew = new ArrayCollection(); $this->constructorWasCalled = true; }