Exemple #1
0
 public function __construct($entityName)
 {
     parent::__construct($entityName);
     $this->_reflection = new ReflectionClass($this->_entityName);
     if (!$this->_reflection->isSubclassOf('Waf_Model_Entity_Injectable')) {
         throw new Waf_Model_EntityGenerator_Exception('This entityGenerator can only be used in combination with ' . 'Waf_Model_Entity_Injectable subclasses');
     }
 }
Exemple #2
0
 public function __construct($entityName)
 {
     parent::__construct($entityName);
     $this->_reflection = new ReflectionClass($this->_entityName);
     $this->_reflectionProperties = $this->_reflection->getProperties();
 }