I can confirm that all the related models called from a controller
(like $this->contr1->contr2) are automatically re-generated by
Cakephp. I can say that because I have some configuration done in
other model's relations declaration that get overwritten and lost
too.  I think this is a plug-in only issue, as far I rembember I did
not face this problem before. I will give a try to 1.2.6 and if the
problem remains try to move the models and controllers outside the
plug-in.

> What happens if you change SisField::$hasMany to var $hasMany =
> array('SisQueue');?

pardon for my dumbness but I did not understand what you are asking me
to do...in the model hasMany is already var hasMany=


>
> On Mar 6, 9:02 pm, mathaios <mathaio...@gmail.com> wrote:
>
> > yes Paul this is the problem!
>
> > $this->SisField->SisQueue->belongsTo does return an empty array
> > instead of the real one. Clearly Cake is auto-creating the model.
> > I have tested all other model related to SisField and none of them is
> > the "real one": all are re-created by Cake.
>
> > Maybe it's related of this being a plug-in and could be a bug ?
>
> > On Mar 6, 8:41 am, WebbedIT <p...@webbedit.co.uk> wrote:
>
> > > That looks correct to me, to test if the problem is with the function
> > > name put() I just added a method to one of my models and called it via
> > > another model from a controller without issue so that's not the
> > > problem.
>
> > > Can you access any of that models attributes/methods?  how about :
>
> > > echo debug($this->SisField->SisQueue->belongsTo);
>
> > > I think that cake is not finding the model for some reason and is
> > > therefore creating it's own auto-model which obviously will not
> > > include the put() method.  Confusing as your model's filename seems to
> > > be correct, but the above should test this.
>
> > > HTH
>
> > > Paul.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to