Re: Persistent model to true -> Fatal error

2009-06-06 Thread pauloamgomes
hmm maybe Album, not Albun? :-) > > pauloamgomes schrieb: > > > > > Using ClassRegistry and CakePHP 1.2.2.8120. > > > Regards. > > > On Jun 2, 3:57 pm, jperras wrote: > > >> Are you using the ClassRegistry or manually importing classes > >> (specifica

Re: Persistent model to true -> Fatal error

2009-06-04 Thread pauloamgomes
Using ClassRegistry and CakePHP 1.2.2.8120. Regards. On Jun 2, 3:57 pm, jperras wrote: > Are you using the ClassRegistry or manually importing classes > (specifically Models) using App::import anywhere ? > > What version of CakePHP are you running? > > -j. > > > &

Re: Persistent model to true -> Fatal error

2009-06-01 Thread pauloamgomes
yep, it only occurs in some models, maybe some bug in way that cakephp initializes models using cache files.. any idea about the perfomance lost not using persistent models? On Jun 1, 12:11 am, Miles J wrote: > It wont work, so set it to false. > > $persistModel only works in some instances and

Persistent model to true -> Fatal error

2009-05-31 Thread pauloamgomes
Hi all, when i activate persistent model to true in my application, it breaks my models, I'm getting the following fatal errors: Fatal error: PhotosController::index() [photoscontroller.index]: The script tried to execute a method or access a property of an incomplete object. Please ensure that

Re: many-to-many and one-to-many associations

2008-08-21 Thread pauloamgomes
Hi, many thanks for the adivce, i agree with your opinion, but like you say none of the solutions are the better way for now i used another solution (new field on posts table for counting the comments) it breaks some modelling rules but for now solves the problem easly regards Paulo On Aug 19,

many-to-many and one-to-many associations

2008-08-17 Thread pauloamgomes
Hi, i'm trying to solve a problem using the cakephp modeling. I have 3 tables: posts, comments and tags, where - one post have 0 or many comments - one post have one or many tags my physical tables structure is: posts (*id, name, text, date_created) tags(*id,name) comments(*id,post_id, text,