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
I have the models Task and User
?
class Task extends AppModel {
var $name = 'Task';
var $belongsTo = array ( 'Author' = array (
'className' = 'User',
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
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
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
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