W3cubDocs

/Phalcon 2

Class Phalcon\Mvc\Model\Behavior\SoftDelete

extends abstract class Phalcon\Mvc\Model\Behavior

implements Phalcon\Mvc\Model\BehaviorInterface

Instead of permanently delete a record it marks the record as deleted changing the value of a flag column

Methods

public notify (string $type, Phalcon\Mvc\ModelInterface $model)

Listens for notifications from the models manager

public __construct ([array $options]) inherited from Phalcon\Mvc\Model\Behavior

Phalcon\Mvc\Model\Behavior

protected mustTakeAction () inherited from Phalcon\Mvc\Model\Behavior

Checks whether the behavior must take action on certain event

protected array getOptions () inherited from Phalcon\Mvc\Model\Behavior

Returns the behavior options related to an event

public missingMethod (Phalcon\Mvc\ModelInterface $model, string $method, [array $arguments]) inherited from Phalcon\Mvc\Model\Behavior

Acts as fallbacks when a missing method is called on the model

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Mvc_Model_Behavior_SoftDelete.html