Db\Adapter\Pdo\Sqlite::getDefaultValue

public getDefaultValue ()

Returns the default value to make the RBDM use the default value declared in the table definition

//Inserting a new robot with a valid default value for the column 'year'
 $success = $connection->insert(
 "robots",
 array("Astro Boy", $connection->getDefaultValue()),
 array("name", "year")
 );
doc_Phalcon
2016-10-16 09:49:15
Comments
Leave a Comment

Please login to continue.