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); }
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); }