Exemplo n.º 1
0
 /**
  * Gets an entity instance from an entity set identified by a key
  *
  * @param ResourceSet $resourceSet The entity set containing the entity to fetch
  * @param KeyDescriptor $keyDescriptor The key identifying the entity to fetch
  *
  * @return object|null Returns entity instance if found else null
  */
 public function getResourceFromResourceSet(ResourceSet $resourceSet, KeyDescriptor $keyDescriptor)
 {
     $entityInstance = $this->queryProvider->getResourceFromResourceSet($resourceSet, $keyDescriptor);
     $this->_validateEntityInstance($entityInstance, $resourceSet, $keyDescriptor, 'IQueryProvider::getResourceFromResourceSet');
     return $entityInstance;
 }