public function getId() { if ($this->__isInitialized__ === false) { return (int) $this->_identifier["id"]; } $this->__load(); return parent::getId(); }
/** * Get role id * * @return int */ public function getRoleId() { return $this->role ? $this->role->getId() : 0; }