コード例 #1
0
 /**
  * Gets the repository for a class.
  *
  * @param string $className
  *
  * @return \Doctrine\Common\Persistence\ObjectRepository
  */
 public function getRepository($className)
 {
     return $this->objectRepositoryFactory->getRepository($className);
 }
コード例 #2
0
 /**
  * @param string $className
  * @param array  $data
  *
  * @return array $identifier
  */
 private function extractIdentifierFromData($className, array $data)
 {
     return $this->objectRepositoryFactory->getRepository($className)->getObjectIdentifierFromData($data);
 }