Hello again!!
I think I've found a way to solve my problem...
I do the table creation before saving (using beforeSave() as opposed
to afterSaave())
and use the
$this->exists()
method to check wheter or not my Model instance already exists...
I think it's pretty straightforward...but I might be "poisoned" by
thinking about this some much time... :-)
Anyway, this is just for prototyping effects, for the app first
version...later on, me or some other team member will code a proper
solution...
I leave here the code stub, in case anyone else might have the same
problem in the future...
function beforeSave()
{
// Checking if the instance exists...
if (! $this->exists())
{
// Create the table
}
return true;
}
Thanks again to everybody!
Cheers.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---