protected function getId()
    {
        if ($key = $this->manager->config('model_primary_key')) {
            return $this->manager->getInstance()->{$key};
        }

        return $this->manager->getInstance()->getKey();
    }
protected function getId()
    {
        if ($key = $this->manager->config('model_primary_key')) {
            return $this->manager->getInstance()->{$key};
        }

        return $this->manager->getInstance()->getKey();
    }
protected function getId ( ) { if ( $ key = $ this -> manager -> config ( 'model_primary_key' ) ) { return $ this -> manager -> getInstance ( ) -> { $ key } ; } return $ this -> manager -> getInstance ( ) -> getKey ( ) ; }
Returns the id of the current object instance.

@return string
Returns the id of the current object instance .