Hi,
Well, I feel silly about "TheOtherModel" bit!!

Anyway, I went back in and added EvalautionMixeval into $uses and
there was no "confusion in the program" this time.  This fixed the
error message. But now I am having a different problem.  I am going to
try and work on it some on my own first.

Just wanted to say thanks for taking the time to help me,

Mary

On Oct 1, 12:14 pm, brian <[email protected]> wrote:
> On Thu, Oct 1, 2009 at 11:51 AM, Dr. Loboto <[email protected]> wrote:
>
> > Under "TheOtherModel" brian ment some other model from $uses that have
> > association with needed EvaluationMixeval model. Check that models
> > associations and use the one that associated with EvaluationMixeval
> > (if there is any).
>
> heh :-)
>
> > On Oct 1, 9:48 pm, mkgour <[email protected]> wrote:
> >> Hi Brian,
> >> Thank you so much for being willing to help. I am pretty sure that
> >> $uses class does not include EvaluationMixeval, and I did try to add
> >> it a few days agao and that just caused confusion in the program and
> >> items that worked previously stopped working, so I took it out.
>
> Can you expand on "confusion in the program"? What sorts of errors did
> you see? Because it's likely that the original intention was to have
> this model in $uses, given that the code has $this->EvaluationMixeval
> (so it could be accessed directly).
>
> Having said that, I have to point out that this controller has an
> awful lot in $uses already. I hope it's not a very busy controller,
> because every one of those models is going to be loaded for every
> request to this controller. It looks like it might be a bit of a
> bottleneck.
>
> So, perhaps the better fix is to use model associations. Once that's
> working, you might want to go through the other models in $uses. Where
> a model could also be accessed through association with another in
> $uses, remove it and change any code referring to $this->TheModel to
> $this->AssocModelStillInUses->TheModel (no, not those names literally
> :-)
>
> If you do go down that route, I suggest you first put each model name
> in $uses on its own line like this:
>
> var $uses = array(
>         'EvaluationRubric',
>         'EvaluationRubricDetail',
>         'EvaluationSubmission',
>         'Event',
>         'EvaluationSimple',
>         'SimpleEvaluation',
>         'Rubric',
>         'Group',
>         'GroupEvent',
>         'GroupsMembers',
>         'RubricsLom',
>         'RubricsCriteria',
>         'RubricsCriteriaComment',
>         'Personalize',
>         'User',
>         'SurveyQuestion',
>         'Question',
>         'Response',
>         'Survey',
>         'SurveyInput',
>         'Course'
> );
>
> This way, you can comment out one at a time while you change any
> reference to it like $this->NameHere.
>
> Obviously, you won't be able (nor want) to remove all of the models
> from $uses, but I'll bet you could judiciously remove at least half of
> those.
--~--~---------~--~----~------------~-------~--~----~
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