Javatpoint Logo
Javatpoint Logo

Phalcon Model Behaviours

Behaviour is shared conducts which is used by the models to reuse the code. The ORM provides an API to implement behaviours in the models. To implement behaviour we have alternative such as events and callbacks which increases the efficiency of behaviours.

Build-in behaviours are as follows:

Name Description
Timestampable It allows to automatically updates a model's attribute saving the datetime when a record is created or updated.
SoftDelete Instead of permanently delete a record it marks the record as deleted changing the value of a flag column.


It implements Timestampable a pre-defined behaviour which consists of many options for single event or for complete event.

Now, creating array option for 'format' using php function 'time':

Youtube For Videos Join Our Youtube Channel: Join Now


  • Send your Feedback to

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA