Set a property to its default value if the field is defaultable and the referenced object cannot be found in the database.

develop
Sven Slootweg 12 years ago
parent d27086aca7
commit bd3db37ea5

@ -176,7 +176,7 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass
{ {
if(is_array($defaultable) && in_array($variable_name, $defaultable)) if(is_array($defaultable) && in_array($variable_name, $defaultable))
{ {
// Set to default value $value = new $class_name(0);
} }
else else
{ {

Loading…
Cancel
Save