Re : Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager

2011-06-17 Thread waldo2188
HOURA ! I've fix the problem ! Here is my entire Class namespace X\ModelBundle\Tests\DataFixtures; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use X\ModelBundle\Entity\BAdresseEnlevement; use X\ModelBundle\DataFixtures\ORM\Load01PurgeData; class Load01PurgeDataTest extends

Re : Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager

2011-06-17 Thread waldo2188
Thanks for your response, but, *$this* hasn't method named *getService* . .PHP Fatal error: Call to undefined method BOD\ModelBundle\Tests\DataFixtures\Load01PurgeDataTest::getService() in /home/xxxwww/xxx/src/BOD/ModelBundle/Tests/DataFixtures/ORM/Load01PurgeDataTest.php Maybe we don't use

Re: Re : Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager

2011-06-17 Thread Jeremiah Dodds
On Thu, Jun 16, 2011 at 4:24 AM, waldo2188 waldo2...@gmail.com wrote: Thanks for your response, but, *$this* hasn't method named *getService* . Oh, sorry about that. I forgot that I had defined the getService method :/. From your other response, it looks like you figured it out though, sorry

[symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager

2011-06-15 Thread waldo2188
Hi, I wish to know how i can execute some DQL(Doctrine Query Language) from a unit test file. I just want to have access to my Entity for test some function. The unit test will be run with PHPUnit. Big thanks for your help ! Waldo (Symfony beginner) -- If you want to report a vulnerability

Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager

2011-06-15 Thread Jeremiah Dodds
On Tue, Jun 14, 2011 at 12:52 PM, waldo2188 waldo2...@gmail.com wrote: Hi, I wish to know how i can execute some DQL(Doctrine Query Language) from a unit test file. I just want to have access to my Entity for test some function. The unit test will be run with PHPUnit. use

Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager

2011-06-15 Thread oscar balladares
Why when I asked same question no one could came up with a good answer like this one? [?] Thanks a lot. This will help me improve my current and first S2 production-meant app. [?] 2011/6/15 Jeremiah Dodds jeremiah.do...@gmail.com On Tue, Jun 14, 2011 at 12:52 PM, waldo2188