/** * Add builds * * @param \HLP\NebulaBundle\Entity\Build $builds * @return Branch */ public function addBuild(\HLP\NebulaBundle\Entity\Build $builds) { $this->builds[] = $builds; $this->nbBuilds++; $builds->setBranch($this); $this->meta->addBuild($builds); return $this; }