Newscoop\Entity\User::getRoleId PHP Method

getRoleId() public method

Get role id
public getRoleId ( ) : integer
return integer
    public function getRoleId()
    {
        return $this->role ? $this->role->getId() : 0;
    }

Usage Example

 public function getRoleId()
 {
     $this->__load();
     return parent::getRoleId();
 }
All Usage Examples Of Newscoop\Entity\User::getRoleId