ORM::set_expr PHP Method

set_expr() public method

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

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