Class DeleteObjectBehavior
DeleteObjectBehavior class
Delete object using dependence of foreign key. Delete only the record of base table then database's referential integrity do the rest
- ModelBehavior
- DeleteObjectBehavior
Located at models/behaviors/delete_object.php
Methods summary
public
|
|
public
boolean
|
#
beforeDelete( Model & $model )
Delete all associations, they will be re-established after deleting Considering foreignKeys among tables, force deleting records on table 'objects' |
public
|
|
private
|
|
private
|
#
deleteAnnotations( integer $object_id )
delete annotation objects like Comment, EditorNote, etc... related to main object |