_articles = new ArrayCollection; $this->_references = new ArrayCollection; $this->_cars = new ArrayCollection; } public function getId() { return $this->_id; } public function getUsername() { return $this->_username; } public function addArticle(LegacyArticle $article) { $this->_articles[] = $article; $article->setAuthor($this); } public function addReference($reference) { $this->_references[] = $reference; } public function references() { return $this->_references; } public function addCar(LegacyCar $car) { $this->_cars[] = $car; $car->addUser($this); } public function getCars() { return $this->_cars; } }