public function getClassMetadata($class)
{
++$this->callCount;
$metadata = new \Doctrine\ODM\PHPCR\Mapping\ClassMetadata('stdClass');
switch ($this->callCount) {
case '1':
break;
case '2':
$metadata->customRepositoryClassName = "stdClass";
break;
default:
throw new \Exception('getClassMetadata called more than 2 times');
break;
}
return $metadata;
}