So that means if I do: onDelete => Self::Delete it will run the Delete method for it self is a dependednt table is removed?
/Peter On Nov 26, 2007 11:09 AM, Harro <[EMAIL PROTECTED]> wrote: > > It simply emulates foreign key constraints for databases that don't support > it themselves. > > PostGreSQL does support it so you might want to check the manual on what it > does: > > http://www.postgresql.org/docs/8.2/interactive/ddl-constraints.html (bottom > of the page) > > > > > Peter Lauri-2 wrote: > > > > Hi, > > > > Anyone who have an address to an good example of onDelete. I saw this in > > the manual, but it doesn't show the whole process. > > > > > > <?php > > class BugsProducts extends Zend_Db_Table_Abstract > > { > > ... > > protected $_referenceMap = array( > > 'Product' => array( > > 'columns' => array('product_id'), > > 'refTableClass' => 'Products', > > 'refColumns' => array('product_id'), > > 'onDelete' => self::CASCADE, > > 'onUpdate' => self::RESTRICT > > ), > > ... > > ); > > } > > > > /Peter > > > > > > > > -- > View this message in context: > http://www.nabble.com/DB%3A-onDelete%2C-good-example--tf4872181s16154.html#a13946221 > Sent from the Zend Framework mailing list archive at Nabble.com. > >
