Example #1
0
 public function __construct(SimDAL_Mapper_Entity $entity, $property, $fieldname, $datatype, $primarykey = false, $autoincrement = false, $alias = null)
 {
     $this->_entity = $entity;
     $this->_class = $entity->getClass();
     $this->_table = $entity->getTable();
     $this->_schema = $this->getSchema();
     $this->_property = $property;
     $this->_fieldName = $fieldname;
     $this->_dataType = $datatype;
     $this->_primaryKey = $primarykey;
     $this->_autoIncrement = $autoincrement;
     $this->_alias = $alias;
 }
Example #2
0
 protected static function _generateProxyClass(SimDAL_Mapper_Entity $mapping, $class = null)
 {
     if (is_null($class)) {
         $class = $mapping->getClass();
     }
     $proxy_class = $class . 'SimDALProxy';
     $class = 'class ' . $proxy_class . ' extends ' . $class . ' implements SimDAL_ProxyInterface {' . PHP_EOL . PHP_EOL;
     return $class;
 }
Example #3
0
 public function getClass()
 {
     return $this->_from->getClass();
 }