Ia have this code:
PHP Code:
class Comandes extends Zend_Db_Table{
protected $_name = 'c_comandes';
protected $_dependentTables = array('Lineas');
}
class Lineas extends Zend_Db_Table{
protected $_name = 'c_lineas';
protected $_referenceMap = array(
'Comandes' => array(
'columns' => array("id_c_comandes"),
'refTableClass' => 'Comandes',
'refColumns' => array('id'),
'onDelete' => self::CASCADE
)
);
}
and then:
PHP Code:
$C = new Comandes()
$C->delete("id=x");
but the dependent "LIneas" are not deleted!
anyone knows what i'm doing grong??
if I get de dependentRowSet of a "Comandes" this work, then there are no problems on the referencemap...
thx