This class allows to insert/update raw data without quoting or formatting. The next example shows how to use the MySQL now() function as a field value.
1 2 3 4 | $subscriber = new Subscribers(); $subscriber ->email = '[email protected]' ; $subscriber ->createdAt = new \Phalcon\Db\RawValue( 'now()' ); $subscriber ->save(); |
Methods
public getValue ()
Raw value without quoting or formatting
public __toString ()
Raw value without quoting or formatting
public __construct (mixed $value)
Phalcon\Db\RawValue constructor
Please login to continue.