Go to Google Groups Home    doctrine-user
Re: Empty table fixture

eXtreme <jacek.jedrzejew...@gmail.com>

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/
> 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
> ............