Пример #1
0
 public function getDadosTabela($xml)
 {
     $model = new \Core_Doctrine_DBAL_Event_Listeners_Logger();
     $chave = array();
     foreach ($xml->tabela->coluna as $campo) {
         if (strpos($campo->nome, 'sq_') !== false) {
             $chave[] = $campo;
         }
     }
     return $model->getDadosTabela($xml->tabela->nome, $chave);
 }
Пример #2
0
 /**
  *
  * @param \Doctrine\ORM\Event\LifecycleEventArgs $args
  */
 public function preRemove(LifecycleEventArgs $args)
 {
     if (!$this->isEventActive($args, self::EVENT_DELETE)) {
         return;
     }
     self::$sqOperacao = 'D';
     self::createLog(array(), $args);
 }