/** * {@inheritDoc} */ public function getLanguage() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLanguage', array()); return parent::getLanguage(); }
/** * @return ArrayCollection */ public function getLanguages() { $result = $this->entityManager->getRepository(Language::getClass())->findAll(); return new ArrayCollection($result); }