By default, the "db" application component is used as the database connection.

updating multiple values-59

Make sure you call the parent implementation so that the event is raised properly.

This method is invoked after each record is instantiated by a find method.

The default implementation raises the on After Find event.

CActive Record is the base class for classes representing relational data.

It implements the active record design pattern, a popular Object-Relational Mapping (ORM) technique.

Please check the Guide for more details about this class.Returns the database connection used by active record.Also, the default table alias set by set Table Alias may be overridden by the applied scopes. See CModel::scenario for more details about this parameter.Note: in order to setup initial model parameters use init() or after Construct().Do NOT override the constructor unless it is absolutely necessary! The default implementation raises the on After Delete event.You may override this method to do postprocessing after the record is deleted.