Re : Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager
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 WebTestCase { public function __construct() { $kernelNameClass = $this-getKernelClass(); $kernel = new $kernelNameClass('test', true); $kernel-boot(); $this-em = $kernel-getContainer()-get('doctrine.orm.entity_manager'); } public function testLoad() { echo \n; print_r( get_class_methods( $this-em )); echo \n; } } -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re : Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager
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 the same version of the Symfony Framework? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: Re : Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager
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 for the inaccurate response. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en