public function __toString() { $this->__load(); return parent::__toString(); }
/** * @see Newscoop\Service\Implementation\ArticleTypeServiceDoctrine::create() */ private function _create($name) { Validation::notEmpty($name, 'name'); $artType = new ArticleType(); $artType->setName($name); $em = $this->getEntityManager(); $em->persist($artType); return $artType; }