Hello! Here's the thing, I'm a couple of weeks from deploying my application and for this first version we will be using scaffolding for a "lesser- used" system part...so the 'quit scaffolding and code it by hand' is not an option (at least for a timely delivery...).
In my system, when you create a new Entity you need not only to add a record on the "entities" table but also to create a family of Entity_X tables (where X is a name suffix...). My idea was to use the afterSave() callback to create the Entity_X's tables AFTER the record is inserted. Thing is the afterSave() is used also when you edit a model (and when you edit an Entity you don't want to create new tables, but if you might need to alter the 'X' part of the Entity_X tables...) so I must make the Model somehow aware of the controller action that was requested. As far as I know this Model awareness of the controller is not possible with cake, right? Does anybody can help me out on these one? Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
