mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding property definition for Model::$virtualFields
This commit is contained in:
parent
d561405daa
commit
34410de7c8
1 changed files with 16 additions and 2 deletions
|
@ -298,6 +298,20 @@ class Model extends Overloadable {
|
|||
*/
|
||||
var $order = null;
|
||||
|
||||
/**
|
||||
* Array of virtual fields this model has. Virtual fields are aliased
|
||||
* SQL expressions. Fields added to this property will be read as other fields in a model
|
||||
* but will not be saveable.
|
||||
*
|
||||
* `var $virtualFields = array('two' => '1 + 1');`
|
||||
*
|
||||
* Is a simplistic example of how to set virtualFields
|
||||
*
|
||||
* @var array
|
||||
* @access public
|
||||
*/
|
||||
var $virtualFields = array();
|
||||
|
||||
/**
|
||||
* Whether or not the model record exists, set by Model::exists().
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue