Skip to content

Latest commit

 

History

History
39 lines (14 loc) · 775 Bytes

Phalcon_Mvc_Model_Behavior.rst

File metadata and controls

39 lines (14 loc) · 775 Bytes

Abstract class Phalcon\Mvc\Model\Behavior

This is an optional base class for ORM behaviors

Methods

public __construct ([array $options])

protected mustTakeAction (unknown $eventName)

Checks whether the behavior must take action on certain event

protected array getOptions ([string $eventName])

Returns the behavior options related to an event

public notify (unknown $type, unknown $model)

This method receives the notifications from the EventsManager

public missingMethod (Phalcon\\Mvc\\ModelInterface <Phalcon_Mvc_ModelInterface> $model, string $method, [array $arguments])

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