Thanks, but it seems that behavior (or beforeSave callback) won't help
cause cake simply strips out empty string values in DboSource::create
(after callback).
If for example there were some constant say
define(EMPTY_STRING, 'SOMETHINGREPRESENTINGEMPTYSTRING') and in
DboSource::create there was something like
if ($set === "''") {
unset ($fieldInsert[$i]);
} elseif ($set === EMPTYSTRING) {
$valueInsert[] = '';
} else {
$valueInsert[] = $set;
}
Then I could write a behavior that would have beforeSave that would
replace empty strings for certain fields with that constant and it
would work, but that's a dirty hack I think.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---