Re: Component or Behavior?
Since you are mostly dealing with Models you should first try to see
if you can find relationships between the models
Something like Event hasMany Participants and so on - this will make
your task easier and if at all needed what you should program is a
Behaviour
HTH
Tarique
On Mon, Jan 10, 2011 at 12:31 PM, Eric Anderson
<andersoneric777@gmail.com> wrote:
> Hi everyone,
>
> I'm creating an app and have a situation where after an event occurs,
> I need to save data in many different models. Essentially, when a
> competition ends, I need to save the winner, award points to everyone
> who entered the competition and as well as award "credits".
> Essentially, I end up editing 4 (or more) different models when a
> competition ends and needs to be evaluated.
>
> What's the best way to handle things like this, where an event occurs
> but the consequences affect many models?
>
> Thanks!
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
>
--
=============================================================
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=============================================================
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home