示例#1
0
 function prepare($source = null)
 {
     if ($source instanceof \DBAL\Data\Source) {
         if ($this->adapter->isRead()) {
             $source->Map->register(new \DBAL\Data\Filter\Column());
         }
     }
     return parent::prepare($source);
 }
示例#2
0
 function prepare($source = null)
 {
     if ($source instanceof \DBAL\Data\Source) {
         if ($this->adapter->isRead()) {
             $source->Map->register(new \DBAL\Data\Filter\Table());
         } elseif ($this->adapter->isWrite()) {
             $source->Map->register(new \DBAL\SQL\Filter\Entity());
         }
     }
     return parent::prepare($source);
 }