Make database insertion play nice with autoloading.

develop
Sven Slootweg 12 years ago
parent 4caf68e6ff
commit 8a46f5d630

@ -419,8 +419,11 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass
} }
else else
{ {
$classname = get_class($this); if($this->autoloading === false)
throw new Exception("Database insertion failed: prototype property {$value['key']} not found in object of type {$classname}."); {
$classname = get_class($this);
throw new Exception("Database insertion failed: prototype property {$value['key']} not found in object of type {$classname}.");
}
} }
} }

Loading…
Cancel
Save