On Oct 14, 12:16 am, acoustic_overdrive <[EMAIL PROTECTED]>
wrote:
> Hi AD,
>
> It's the Searchable Behaviour from here:
>
> http://code.google.com/p/searchable-behaviour-for-cakephp/source/brow...
>
> You can see on line 27 it uses the id field from the data.
>
> If that's the official guidance (that behaviours should look at Model->id
> instead of $data[model][id]) then that's fine, I'll do as you
>
> suggest and modify this behaviour to use Model->id. Maybe that's
> something for the documentation?
The point is that behaviors should use either the same way the core
model does - not rely on one or the other.
> I just thought it was strange that something as important as the id
> field of the data would be fiddled with!
I can't remember the ticket, but having the id and the array key set
caused a problem. so the behavior checks both, sets the id, and off it
goes.
Again, if it's a problem test, ticket and trac.
cheers
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---