ORM::set_expr PHP Метод

set_expr() публичный Метод

To set multiple properties at once, pass an associative array as the first parameter and leave out the second parameter. Flags the properties as 'dirty' so they will be saved to the database when save() is called.
public set_expr ( string | array $key, string | null $value = null )
$key string | array
$value string | null
    public function set_expr($key, $value = null)
    {
        return $this->_set_orm_property($key, $value, true);
    }

Usage Example

Пример #1
0
 /**
  * Setter method, allows $model->set_expr('property', 'value') access to data.
  *
  * @param  string|array $property
  * @param  string|null  $value
  * @return void
  */
 public function set_expr($property, $value = null)
 {
     $this->orm->set_expr($property, $value);
     return $this;
 }
ORM