Stu,
It's not wise to suggest using Model::query as a solution to what is a
fairly simple issue (saving related hasMany or HABTM records)
Model::query is really a last resort method for completing complex
database queries that are not possible with Cake and it is in your
best interest to only use it once you are sure you can't achieve the
same result with Cake's model methods.
For example: your login update should probably be a method in your
User model which gets ran after a successful login which simple runs
$this->saveField('last_visit_field_name', $currentDateTime);
Regards,
Paul (Webbed IT)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---