Re: Promlems with Fixtures using $import in RC3

2008-10-07 Thread Christof Damian

Yes, the connection seems to be the problem. I also saw this in
another thread, which did the trick.

var $import = array('model' = 'Foo', 'connection' = 'default');

2008/10/3 mark_story [EMAIL PROTECTED]:

 There were a number of problems with fixture importing in RC2, which
 were corrected.  Perhaps one of these corrections broke your tests?.
 For examples on fixture use check the fixture test. You can also try
 specifying which connection you want to use so connection = default

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Promlems with Fixtures using $import in RC3

2008-10-03 Thread cdamian

I am having problems with fixtures which use $import = SomeModel.

I am getting the usual Database table some_models for model SomeModel
was not found.

Sometimes it helps to change it to $import = array('table' =
'some_models'); but this doesn't solve it all the time. Especially if
there are multiple fixtures used in a test.

Did the way fixtures should be used change in RC3, the tests were
working in RC2 ? Or should I just stop using $import ?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Promlems with Fixtures using $import in RC3

2008-10-03 Thread mark_story

There were a number of problems with fixture importing in RC2, which
were corrected.  Perhaps one of these corrections broke your tests?.
For examples on fixture use check the fixture test. You can also try
specifying which connection you want to use so connection = default

-Mark

On Oct 3, 5:07 am, cdamian [EMAIL PROTECTED] wrote:
 I am having problems with fixtures which use $import = SomeModel.

 I am getting the usual Database table some_models for model SomeModel
 was not found.

 Sometimes it helps to change it to $import = array('table' =
 'some_models'); but this doesn't solve it all the time. Especially if
 there are multiple fixtures used in a test.

 Did the way fixtures should be used change in RC3, the tests were
 working in RC2 ? Or should I just stop using $import ?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---