protected function identifyEntity($instance, $entityName)
    {
        $fields = $this->models->get($entityName)->primaryFields();

        $id = [];
        foreach ($fields as $field) {
            $id[] = $this->accessor->getPropertyValue($instance, $field->name());
        }

        return implode(':', $id);
    }
protected function identifyEntity($instance, $entityName)
    {
        $fields = $this->models->get($entityName)->primaryFields();

        $id = [];
        foreach ($fields as $field) {
            $id[] = $this->accessor->getPropertyValue($instance, $field->name());
        }

        return implode(':', $id);
    }
protected function identifyEntity ( $ instance , $ entityName ) { $ fields = $ this -> models -> get ( $ entityName ) -> primaryFields ( ) ; $ id = [ ] ; foreach ( $ fields as $ field ) { $ id [ ] = $ this -> accessor -> getPropertyValue ( $ instance , $ field -> name ( ) ) ; } return implode ( ':' , $ id ) ; }
Returns entity identifier
If more than one primary keys, entity will not be identified

@param object $instance
@param string $entityName

@return string
Returns entity identifier If more than one primary keys entity will not be identified