Here is my setup on something similar to a weekly planner or punch
clock with on-duty time blocks.:

DutyPeriods has many Deviations
Deviations belongs to DutyPeriods

I have a validation setup that checks to see if data being added to
DutyPeriods doesn't overlap with existing ones. I need to be able to
run the validation and if it fails offer the user the option to create
a Deviation (a reason for the exception to the rule) that belongs to
that DutyPeriod and save the DutyPeriod. I know you can add
'validate'=> false to the save() function but what I don't know is how
to go about this. Can someone help me out with a logical flow of how
to do this?

Here is a picture of what if it helps (time blocks are records within
the duty_periods table): http://kenfrey.net/block.png
--~--~---------~--~----~------------~-------~--~----~
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