示例#1
0
 /**
  * @param string $type the id generator type
  *
  * @return IdGenerator
  */
 private function getIdGenerator($type)
 {
     if (!isset($this->idGenerators[$type])) {
         $this->idGenerators[$type] = IdGenerator::create($type);
     }
     return $this->idGenerators[$type];
 }
示例#2
0
 /**
  * @expectedException \Doctrine\ODM\PHPCR\Exception\InvalidArgumentException
  * @covers Doctrine\ODM\PHPCR\Id\IdGenerator::create
  */
 public function testCreateException()
 {
     IdGenerator::create(null);
 }