This class allows to insert/update raw data without quoting or formating. The next example shows how to use the MySQL now() function as a field value.
$subscriber = new Subscribers(); $subscriber->email = '[email protected]'; $subscriber->created_at = new Phalcon\Db\RawValue('now()'); $subscriber->save();
Phalcon\Db\RawValue constructor
Returns internal raw value without quoting or formating
Magic method __toString returns raw value without quoting or formating
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Db_RawValue.html