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
............
> 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
> ............
> 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
> > ............
Whoops ;d Haven't read the thread title ;d Well, fixtures can't delete
any data, cuz they are only for importing NEW data ;d importing the
same fixture two times will duplicate records.
On 8 Lip, 12:57, nord_ua <ryabenko.ser...@gmail.com> wrote:
> Whoops ;d Haven't read the thread title ;d Well, fixtures can't delete
> any data, cuz they are only for importing NEW data ;d importing the
> same fixture two times will duplicate records.
> On 8 Lip, 12:57, nord_ua <ryabenko.ser...@gmail.com> wrote:
> > > 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 июл, 10:52, eXtreme <jacek.jedrzejew...@gmail.com> wrote:
> > > TableName:
> > > 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/
> > Whoops ;d Haven't read the thread title ;d Well, fixtures can't delete
> > any data, cuz they are only for importing NEW data ;d importing the
> > same fixture two times will duplicate records.
> > On 8 Lip, 12:57, nord_ua <ryabenko.ser...@gmail.com> wrote:
> > > > 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 июл, 10:52, eXtreme <jacek.jedrzejew...@gmail.com> wrote:
> > > > TableName:
> > > > columns:
> > > > should work fine, but you must be aware that Doctrine will create
> > > > primary "id" field there.
Fixtures cat content some states I need for tests. So I wish prepare
different fixtures and just load one on test begin. It is very usefull.
The way of performing queries -- not so usefull, becouse I should change the
_code_ not the fixture _text_.
The variant is to perform DELETE query in setUp method and fill neccessary
tables only.
8 июля 2009 г. 17:37 пользователь eXtreme <jacek.jedrzejew...@gmail.com>написал:
> > > Whoops ;d Haven't read the thread title ;d Well, fixtures can't delete
> > > any data, cuz they are only for importing NEW data ;d importing the
> > > same fixture two times will duplicate records.
> > > On 8 Lip, 12:57, nord_ua <ryabenko.ser...@gmail.com> wrote:
> > > > > 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.
> > > > > > 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
I also miss "reload-fixtures" CLI command only to empty my tables and
load new data, cuz build-all-reload on my symfony website lasts more
than 3 minutes ;d
On 8 Lip, 16:47, Sergey Ryabenko <ryabenko.ser...@gmail.com> wrote:
> Fixtures cat content some states I need for tests. So I wish prepare
> different fixtures and just load one on test begin. It is very usefull.
> The way of performing queries -- not so usefull, becouse I should change the
> _code_ not the fixture _text_.
> The variant is to perform DELETE query in setUp method and fill neccessary
> tables only.
> 8 июля 2009 г. 17:37 пользователь eXtreme <jacek.jedrzejew...@gmail.com>написал:
> > Can't you perform DELETE query?
> > On 8 Lip, 16:32, Sergey Ryabenko <ryabenko.ser...@gmail.com> wrote:
> > > So it is not possible?
> > > Sad :(
> > > > Whoops ;d Haven't read the thread title ;d Well, fixtures can't delete
> > > > any data, cuz they are only for importing NEW data ;d importing the
> > > > same fixture two times will duplicate records.
> > > > On 8 Lip, 12:57, nord_ua <ryabenko.ser...@gmail.com> wrote:
> > > > > > 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.
> I also miss "reload-fixtures" CLI command only to empty my tables and
> load new data, cuz build-all-reload on my symfony website lasts more
> than 3 minutes ;d
> On 8 Lip, 16:47, Sergey Ryabenko <ryabenko.ser...@gmail.com> wrote:
> > Fixtures cat content some states I need for tests. So I wish prepare
> > different fixtures and just load one on test begin. It is very usefull.
> > The way of performing queries -- not so usefull, becouse I should change
> the
> > _code_ not the fixture _text_.
> > The variant is to perform DELETE query in setUp method and fill
> neccessary
> > tables only.
> > 8 июля 2009 г. 17:37 пользователь eXtreme <jacek.jedrzejew...@gmail.com
> >написал:
> > > Can't you perform DELETE query?
> > > On 8 Lip, 16:32, Sergey Ryabenko <ryabenko.ser...@gmail.com> wrote:
> > > > So it is not possible?
> > > > Sad :(
> > > > > Whoops ;d Haven't read the thread title ;d Well, fixtures can't
> delete
> > > > > any data, cuz they are only for importing NEW data ;d importing the
> > > > > same fixture two times will duplicate records.
> > > > > On 8 Lip, 12:57, nord_ua <ryabenko.ser...@gmail.com> wrote:
> > > > > > > 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.