Public Member Functions | Public Attributes

DeleteObjectBehavior Class Reference

DeleteObjectBehavior class. More...

List of all members.

Public Member Functions

 setup (&$model, $config=array())
 beforeDelete (&$model)
 Delete all associations, they will be re-established after deleting Considering foreignKeys among tables, force deleting records on table 'objects'.
 afterDelete (&$model)
 Re-establish associations (insert associations).

Public Attributes

 $config = array()
 contain base table

Detailed Description

DeleteObjectBehavior class.

Delete object using dependence of foreign key. Delete only the record of base table then database's referential integrity do the rest

Definition at line 29 of file delete_object.php.


Member Function Documentation

DeleteObjectBehavior::afterDelete ( &$  model  ) 

Re-establish associations (insert associations).

Definition at line 110 of file delete_object.php.

DeleteObjectBehavior::beforeDelete ( &$  model  ) 

Delete all associations, they will be re-established after deleting Considering foreignKeys among tables, force deleting records on table 'objects'.

if specified delete related object too

Parameters:
Model $model
Returns:
boolean

Definition at line 49 of file delete_object.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:46 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus