For instance if I have something like this:
class Application_Model_DbTable_Events extends Zend_Db_Table_Abstract
{
protected $_name = 'events';
protected $_dependentTables = array('UsersEvents');
protected $_referenceMap = array(
'Creator' => array(
'columns' => 'created_by',
'refTableClass' => 'Users',
'refColumns' => 'ID'
),
);
...
I guess this sounds optimistic, but will Zend be able to ensure that created_by exist in the Users table on an insert somehow?