I'd do it from within the main model, assuming that all of the models are
related.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 10 Jan 2011, at 07:01, Eric Anderson wrote:
> Hi everyone,
>
> I'm creating an app and have a situation where after an event o
Consider database triggers.
I recommend using database trigger for REALLY simple situations that involve
no more then 3 line of code.
In you example pseudo code should looks something like this.
After update trigger on competitions .
#If NEW.complete == yes
#Select awardpoints into new_points from
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,
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
I've been tidying up my classes, moving a lot of stuff from
controllers to models and, so far, it's all been quite intuitive.
However, there's one controller I'm really stuck on. This one involves
uploads, though they can be several different types. I'll call the
model Record because the actual na