Example #1
0
 public static function getPropertyMapDefinition()
 {
     if (static::$getCounter > 0) {
         throw new \Exception('Entity::getPropertyMapDefinition should only be called once.');
     }
     static::$getCounter++;
     return parent::getPropertyMapDefinition();
 }