protected function getIdentifier($object)
    {
        $property = new ReflectionProperty(get_class($object), $this->getPrimaryKey());
        $property->setAccessible(true);
        return $property->getValue($object);
    }
protected function getIdentifier($object)
    {
        $property = new ReflectionProperty(get_class($object), $this->getPrimaryKey());
        $property->setAccessible(true);
        return $property->getValue($object);
    }
protected function getIdentifier ( $ object ) { $ property = new ReflectionProperty ( get_class ( $ object ) , $ this -> getPrimaryKey ( ) ) ; $ property -> setAccessible ( true ) ; return $ property -> getValue ( $ object ) ; }
check if object has already an identifier

@param object $object
@return mixed
check if object has already an identifier