Message from discussion
Empty table fixture
MIME-Version: 1.0
Received: by 10.151.43.14 with SMTP id v14mr2001560ybj.16.1247050669310; Wed,
08 Jul 2009 03:57:49 -0700 (PDT)
Date: Wed, 8 Jul 2009 03:57:49 -0700 (PDT)
In-Reply-To: <67eb58ca-f9d2-4c0d-8638-e86c93e0a4c7@m11g2000yqh.googlegroups.com>
X-IP: 195.216.212.77
References: <b551f3bf-ebff-4c67-aba8-30074f7fe546@d4g2000yqa.googlegroups.com>
<67eb58ca-f9d2-4c0d-8638-e86c93e0a4c7@m11g2000yqh.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.1)
Gecko/20090624 Firefox/3.5,gzip(gfe),gzip(gfe)
Message-ID: <24bcc36c-2a87-4264-9d53-d6b6a34da3cf@h31g2000yqd.googlegroups.com>
Subject: Re: Empty table fixture
From: nord_ua <ryabenko.ser...@gmail.com>
To: doctrine-user <doctrine-user@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
> should work fine, but
It does not
> Doctrine will create
> primary "id" field there.
It is about filling up the table, not create
I need load fixture in _existing_ table, to empty it.
On 8 =D0=B8=D1=8E=D0=BB, 10:52, eXtreme <jacek.jedrzejew...@gmail.com> wrot=
e:
> TableName:
> =C2=A0 columns:
>
> should work fine, but you must be aware that Doctrine will create
> primary "id" field there.
>
> On 8 Lip, 09:38, nord_ua <ryabenko.ser...@gmail.com> wrote:
>
> > Hi. I have to empty table for my tests. How can I do it?
> > I've tried to write just
> > ---------------------------------------
> > TableName: ~
> > ---------------------------------------
> > (Also {} and nothing instead of ~) but I have
> > Argument 2 passed to Doctrine_Data_Import::_hasNaturalNestedSetFormat
> > () must be an array, null given, called in /srv/www/vhosts/
> > smomarket.localhost/www/smomarket/lib/vendor/symfony/lib/plugins/
> > sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Data/Import.php on line
> > 288 and defined
> > /srv/www/vhosts/smomarket.localhost/www/smomarket/lib/vendor/symfony/
> > lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Data/
> > Import.php:253
> > /srv/www/vhosts/smomarket.localhost/www/smomarket/lib/vendor/symfony/
> > lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Data/
> > Import.php:288
> > /srv/www/vhosts/smomarket.localhost/www/smomarket/lib/vendor/symfony/
> > lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Data/
> > Import.php:113
> > /srv/www/vhosts/smomarket.localhost/www/smomarket/lib/vendor/symfony/
> > lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Data.php:222
> > /srv/www/vhosts/smomarket.localhost/www/smomarket/lib/vendor/symfony/
> > lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine.php:850