Re: $useTable ignored when using bindModel()?

2009-05-15 Thread MPeg
I found my error! I was using plugin architecture so the model's correct name is "plugin_name(dot)model_name"!!! Thanks to all! Bye! On 13 Mag, 21:57, deefens wrote: > Dr. Loboto, you saved my day. Thank you so much, now its working > properly > > @MPeg: check your model-filenames, in my situa

Re: $useTable ignored when using bindModel()?

2009-05-13 Thread deefens
Dr. Loboto, you saved my day. Thank you so much, now its working properly @MPeg: check your model-filenames, in my situation this was the fault On 13 Mai, 10:28, MPeg wrote: > Hi, I have the same problem in my application: "useTable" it seems to > be ignored. > > I use a model's class in his

Re: $useTable ignored when using bindModel()?

2009-05-13 Thread MPeg
Hi, I have the same problem in my application: "useTable" it seems to be ignored. I use a model's class in his own controller correctly so I think Cake is able to load it via naming convenctions correctly to! I think so but Cake still ignore mi configuration in relations! What to do? I hate to

Re: $useTable ignored when using bindModel()?

2009-05-12 Thread Dr. Loboto
Check filename of ActivitiesHostess model, it should be activities_hostess.php Such error will occur if Cake is unable to find your model file and load "generic" model that assume conventional table name. On May 13, 1:01 am, deefens wrote: > hi john, > > it still doesn't work. i get the same mes

Re: $useTable ignored when using bindModel()?

2009-05-12 Thread deefens
hi john, it still doesn't work. i get the same message again: "Error: Database table activities_hostesses for model ActivitiesHostess was not found" :( On 12 Mai, 09:47, John Andersen wrote: > If I understand what I read from the source, then your code should be: > > ... bindModel( array( '

Re: $useTable ignored when using bindModel()?

2009-05-12 Thread John Andersen
If I understand what I read from the source, then your code should be: ... bindModel( array( 'hasOne' => array('ActivitiesHostess' => array ('ActivitiesHostess') ) ), false )' Thus your models name should be used as the name for the model that CakePHP thinks it has to use (inflected etc)! Enjoy,

Re: $useTable ignored when using bindModel()?

2009-05-11 Thread deefens
nobody familar with this? *hope* On 9 Mai, 09:16, deefens wrote: > Hi guys, > > this is driving me nuts: when i use bindModel() to add a relationship > on the fly to an certain model, it seems that cake ignores the table > name specified in the attached model in var $useTable. > > Example: > >

$useTable ignored when using bindModel()?

2009-05-09 Thread deefens
Hi guys, this is driving me nuts: when i use bindModel() to add a relationship on the fly to an certain model, it seems that cake ignores the table name specified in the attached model in var $useTable. Example: class ActivitiesHostess extends AppModel { var $name = 'ActivitiesHostess';

Re: useTable ignored?

2009-02-20 Thread rb
On Feb 20, 12:26 pm, Marcelo Andrade wrote: > Your models must be in the singular form. > Hmm.. whoops! Thanks for pointing that out --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to

Re: useTable ignored?

2009-02-20 Thread Marcelo Andrade
On Fri, Feb 20, 2009 at 1:26 PM, rb wrote: > > class CustAcctsController extends AppController { >var $name = 'CustAccts'; >var $uses = array('CustAccts', 'Schools'); Your models must be in the singular form. -- MARCELO DE F. ANDRADE (aka "eleKtron") Belem, PA, Amazonia, Brazil

useTable ignored?

2009-02-20 Thread rb
I'm a bit confused.. it seems the useTable variable is being ignored when a controller is accessing an associated model. For example: I have a model named School: class School extends AppModel { var $name = 'School'; var $useTable = 'my_school_master'; } This works great when u