0

I need to join two tables in zend_validate_Db_NoRecordExists. I need to use exclude for each table. I am using postgresql as db. The usual way of invoking zend_validate_Db_NoRecordExists is as follows:

$validator = new Zend_Validate_Db_NoRecordExists(
                   array (
                    'table' => 'table1',
                    'field' => 'flag',
                    'exclude' => 'delete=0',
                    )
                    );
4

1 回答 1

2

我想你必须让我能够使用

$validator->getSelect()->_joinUsing($type, $name, $cond);

于 2013-06-03T05:05:39.710 回答