Phalcon Model BehavioursBehaviour 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:
ImplementationIt 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': Next TopicPhalcon Model Events |