public function getLanguageId() { try { return $this->language ? $this->language->getId() : 0; } catch (\Doctrine\ORM\EntityNotFoundException $e) { return 0; } }
public function getLanguageId() { $this->__load(); return parent::getLanguageId(); }