Does CakePHP have a function to clear out empty datarows before
saving? Right now I manually parse the array to see if there is an
empty array and unset it.

So given this array:

[data] =>
 [0]       =>
  [name] => 'alice'
 [1]       =>
  [name] => 'bob'
 [2]       =>
  [name] => ''

I would unset [data][2] and then call the save method. I just wanted
to make sure I'm not re-inventing a wheel available in CakePHP.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to