Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Empty table fixture
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
nord_ua  
View profile   Translate to Translated (View Original)
 More options 8 July, 08:38
From: nord_ua <ryabenko.ser...@gmail.com>
Date: Wed, 8 Jul 2009 00:38:46 -0700 (PDT)
Local: Wed 8 July 2009 08:38
Subject: Empty table fixture
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
............

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
eXtreme  
View profile   Translate to Translated (View Original)
 More options 8 July, 08:52
From: eXtreme <jacek.jedrzejew...@gmail.com>
Date: Wed, 8 Jul 2009 00:52:59 -0700 (PDT)
Local: Wed 8 July 2009 08:52
Subject: Re: Empty table fixture
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nord_ua  
View profile   Translate to Translated (View Original)
 More options 8 July, 11:57
From: nord_ua <ryabenko.ser...@gmail.com>
Date: Wed, 8 Jul 2009 03:57:49 -0700 (PDT)
Local: Wed 8 July 2009 11:57
Subject: Re: Empty table fixture
> 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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
eXtreme  
View profile   Translate to Translated (View Original)
 More options 8 July, 15:29
From: eXtreme <jacek.jedrzejew...@gmail.com>
Date: Wed, 8 Jul 2009 07:29:07 -0700 (PDT)
Local: Wed 8 July 2009 15:29
Subject: Re: Empty table fixture
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Ryabenko  
View profile   Translate to Translated (View Original)
 More options 8 July, 15:32
From: Sergey Ryabenko <ryabenko.ser...@gmail.com>
Date: Wed, 8 Jul 2009 17:32:45 +0300
Local: Wed 8 July 2009 15:32
Subject: Re: [doctrine-user] Re: Empty table fixture

So it is not possible?
Sad :(

2009/7/8 eXtreme <jacek.jedrzejew...@gmail.com>

--
Ab imo pectore

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
eXtreme  
View profile   Translate to Translated (View Original)
 More options 8 July, 15:37
From: eXtreme <jacek.jedrzejew...@gmail.com>
Date: Wed, 8 Jul 2009 07:37:50 -0700 (PDT)
Local: Wed 8 July 2009 15:37
Subject: Re: Empty table fixture
Can't you perform DELETE query?

On 8 Lip, 16:32, Sergey Ryabenko <ryabenko.ser...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Ryabenko  
View profile   Translate to Translated (View Original)
 More options 8 July, 15:47
From: Sergey Ryabenko <ryabenko.ser...@gmail.com>
Date: Wed, 8 Jul 2009 17:47:33 +0300
Local: Wed 8 July 2009 15:47
Subject: Re: [doctrine-user] Re: Empty table fixture

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>написал:

--
Ab imo pectore

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
eXtreme  
View profile   Translate to Translated (View Original)
 More options 8 July, 16:08
From: eXtreme <jacek.jedrzejew...@gmail.com>
Date: Wed, 8 Jul 2009 08:08:26 -0700 (PDT)
Local: Wed 8 July 2009 16:08
Subject: Re: Empty table fixture
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Ryabenko  
View profile   Translate to Translated (View Original)
 More options 8 July, 16:13
From: Sergey Ryabenko <ryabenko.ser...@gmail.com>
Date: Wed, 8 Jul 2009 18:13:57 +0300
Local: Wed 8 July 2009 16:13
Subject: Re: [doctrine-user] Re: Empty table fixture

No, CLI is not acceptable here. I have one global fixture, It loads on tests
start, and then some tests need it own state.

8 июля 2009 г. 18:08 пользователь eXtreme <jacek.jedrzejew...@gmail.com>написал:

--
Ab imo pectore

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google