public function getId()
    {
        if (is_array($this->id) && count($this->id) === 1) {
            return current($this->id);
        }
        return $this->id;
    }
public function getId()
    {
        if (is_array($this->id) && count($this->id) === 1) {
            return current($this->id);
        }
        return $this->id;
    }
public function getId ( ) { if ( is_array ( $ this -> id ) && count ( $ this -> id ) === 1 ) { return current ( $ this -> id ) ; } return $ this -> id ; }
Returns the id of the entity that was created or altered.

@return mixed
Returns the id of the entity that was created or altered .