/** * Loads and read a xml mapping file */ public function __construct($file) { $this->hasMany(array('field', 'request', 'transaction', 'param', 'cond', 'order', 'join', 'do', 'set', 'collection')); $this->mapTag('transaction', 'pdoMap_Parsing_Mapping_Transaction'); $this->mapTag('request', 'pdoMap_Parsing_Mapping_Request'); $this->mapTag('do', 'pdoMap_Parsing_Mapping_Do'); $this->mapTag('collection', 'pdoMap_Parsing_Mapping_Collection'); parent::__construct($file, pdoMap::$rootPath . 'Parsing/Mapping/Structure.xsd'); }
/** * Loads and read a xml mapping file */ public function __construct($file) { $this->hasMany(array('add', 'adapter', 'require')); parent::__construct($file, pdoMap::$rootPath . 'Parsing/Config/Structure.xsd'); }