Db\Adapter::getDefaultValue

public getDefaultValue ()

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

1
2
3
4
5
6
//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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.