|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2023-06-14 (5 months ago) ||Not yet rated by the users||Total: 18 ||All time: 11,111 This week: 94|
The package can provide explicit behaviors to Yii2 ActiveRecord.
It provides class extensions to the Yii2 framework ActiveRecord base classes to provide new behaviors using additional behavior implementation classes.
Currently, it implements behavior classes to:
- Make certain model attributes read-only so they cannot be changed
- Make an attribute be handled like a timestamp
- Add support for type-casting attributes
|ActiveRecord is a common design pattern many software applications use to map objects containing the information of entities that the applications need to manipulate into database records.
There are ActiveRecord implementations in many programming languages that use different frameworks.
The package extends the ActiveRecord implementation of the PHP Yii2 framework to implement more explicit behaviors useful for many applications, such as specifying read-only attributes, timestamp attributes, and type casting.
Extended and more explicit behavior for ActiveRecord classes for Yii2
How to install to Yii2 project
composer require smoren/yii2-active-record-explicit
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.