Beispiel #1
0
 /**
  * Creates a new instance of the requested object
  *
  * @param string $objectName Object class with or without namespace
  * @return DataObjectInterface
  */
 public function create($objectName)
 {
     return $this->repositoryFactory->getRepository($objectName)->create();
 }
 /**
  * @expectedException \Corma\Exception\InvalidClassException
  */
 public function testInvalidClass()
 {
     $this->repositoryFactory->getRepository('Invalid');
 }