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',
)
);