Exception in ADOdb
Posted: Fri Aug 04, 2006 2:30 pm
In the ADOdb docs, it says that trying to save an active record like so should throw an error, so how come this doesn't work? Am I doing this right?
Code: Select all
try{
class Article extends ADOdb_Active_Record{}
$article = new Article();
$article->title = $request->title;
$article->save();
} catch(Exception $e) {
die( 'ERROR' );
}