Ejemplo n.º 1
0
 function start($tag, $attributes)
 {
     if (!$this->table) {
         return;
     }
     switch ($tag) {
         case 'row':
             $this->record = $this->table->createRecord();
             foreach ($this->record->getTable()->getFields(true) as $k) {
                 if (!empty($this->parentKeys[$k])) {
                     $this->record->set($k, $this->parentKeys[$k]);
                 }
             }
             $this->record->disableInsertPkCheck(true);
             break;
     }
 }