/** * Adds an edition to the project * * @param string $e_name * * @return TBGEdition */ public function addEdition($e_name) { $this->_editions = null; $edition = new TBGEdition(); $edition->setName($e_name); $edition->setProject($this); $edition->save(); return $edition; }