I had that. Thought the problem was all me. I am still a bit fuzzy on
a lot of the testing stuff.
Try this:
var $import = array('model' => 'Foo', 'connection' => 'default');
I noticed that one of the examples in the Cookbook had a 'connection'
property set. I have had to add this to each of my fixtures to make
them work again.
/Martin
On Oct 6, 9:47 pm, Defranco <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just downloaded 1.2.RC3 and noticed that $import is not working on
> RC3 as it was on RC2:
>
> Foo_fixture.php:
>
> <?php
>
> class FooFixture extends CakeTestFixture {
> var $name = 'Foo';
> var $table = 'foos';
> var $import = array('model' => 'Foo', 'records' => false);
>
> }
>
> ?>
>
> It should import the existing table foos from model Foo, but it is not
> working on RC3 and was working on RC2.
>
> I get an error:
>
> Missing database table 'foos' for model 'Foo'
>
> When I try to run a basic foo.test.php for model foo.php (both created
> by bake and not modified).
>
> Anyone there getting the same problem on RC3?
>
> Any ideas?
>
> thx.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---