Hi

I assume you mean the expects() from the bakery article - but I
haven't used this myself, I've just been using basic unbinds in the
controller e.g.

$this->ProductType->unbindModel(

                        array('hasAndBelongsToMany' => 
array('Adviser'),'hasMany' =>
array('Product'))

                );

I remember it took me a while to track down the problem as all I got
was the blank screen - in the end it was just an inspired guess -
probably with a little help from the log files.

Anyway - good luck

On Apr 22, 10:50 am, Langdon Stevenson <[EMAIL PROTECTED]>
wrote:
> Hi John
>
> Thanks for the input.
>
> I am using the expects() function for unbinding and have tried unbinding
> all related models.
>
> Have also tried setting recursion to "0" for all models, but no go.
>
> I have a feeling that you are on the right track though, as I did (once)
> get a php error saying that it had consumed all of the allocated RAM.
>
> I will play with that further and see what I can turn up.
>
> Regards,
> Langdon
>
> Flipflops wrote:
>
> > Hi Langdon
>
> > My first though is that you need to look at the recursion for your
> > model and unbind unnecessary model relationships - by default Cake
> > will just pull in masses of related records. You can cut it down by
> > first unbinding anything you don't strictly need and then further only
> > select the fields you want.
>
> > I've had similar blank screens in situations where PHP has just timed
> > out.
>
> > When I am writing SQL I only ever select the fields that I
> > specifically want and very rarely use SELECT * FROM - but I think with
> > Cake it is too easy just to return all the feilds - I suppose this is
> > good for quick prototyping but then I often find myself having to go
> > back and optimise.
>
> > The bit of the manual that deals with unbinding is in the model
> > section of the manualhttp://manual.cakephp.org/view/312/models
>
> > John
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to