Re: Fixtures problem in Cake 1.2

2008-01-21 Thread sidr
A have no problem with a test of single model I said I cannot get records from the fixture for joined table --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Fixtures problem in Cake 1.2

2008-01-11 Thread sidr
I have the models Task and User ? class Task extends AppModel { var $name = 'Task'; var $belongsTo = array ( 'Author' = array ( 'className' = 'User',

Re: Fixtures problem in Cake 1.2

2008-01-11 Thread ivlcic
Robby, can you share your working code with us, because I am having the same problem as sidr. I want to reuse app model database field definition (the one that CakePHP auto resolves from a database) for my tests but with test records provided in fixture. - app model auto filed definition and

Re: Fixtures problem in Cake 1.2

2008-01-11 Thread ivlcic
Robby, can you share your working code with us, because I am having the same problem as sidr. I want to reuse app model database field definition (the one that CakePHP auto resolves from a database) for my tests but with record set provided in fixture. - app model auto filed definition and real

Re: Fixtures problem in Cake 1.2

2008-01-11 Thread Robby Anderson
I had a beast of a time with fixtures as well, but finally got them to work. Looking at your test model code, try removing the $useTable from the TestTasks declaration. I think that is the line that is forcing the production table instead of the test_suite table. On Jan 11, 3:48 am, sidr

Re: Fixtures problem in Cake 1.2

2008-01-11 Thread Marcin Domanski aka kabturek
the test case: http://bin.cakephp.org/view/1981319085 fixtures: http://bin.cakephp.org/view/988525363 works like a charm :) HTH, Marcin Domanski aka kabturek http://tumble.kabturek.info On Jan 11, 4:44 pm, ivlcic [EMAIL PROTECTED] wrote: Robby, can you share your working code with us, because