Here is the code I am using in my controller to insert the data :

$group = new GroupPageEngine();
        $group->setInternalName('HomePage');
$group->setTitle('HomePageT');
      $em = $this->get('doctrine.orm.entity_manager');
        $em->persist($group);
        $em->flush();
Anything wrong here ?

On Thu, Apr 7, 2011 at 5:27 PM, seven seven <sapt...@gmail.com> wrote:

> I have returned !
> First let me thank you for your answer ! After some experimental work I
> finally managed to make this work and also generate my DB tables.
>
> The reason I wanted to write back is that I cannot manage to insert
> anything in my DB based on the tree obj relation. The error I get is :
> * SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'lft'
> cannot be null
> 500 Internal Server Error - PDOException
> *
>
> It seems that the lft column is not automatically managed .
> BTW I have decided to use the 2.0 release due to some errors.
>
> Thanks again for your answer !
>
> On Tue, Apr 5, 2011 at 11:24 PM, Christophe COEVOET <s...@notk.org> wrote:
>
>>  Le 05/04/2011 21:22, seven seven a écrit :
>>
>> Hi again !
>>
>>  Well everything worked great till I tried to run *php app/console
>> doctrine:schema:create* and it gives the following error:
>>
>>  *$ ../../php/php.exe app/console doctrine:schema:create*
>> *PHP Catchable fatal error:  Argument 1 passed to
>> Gedmo\Mapping\MappedEventSubscr*
>> *iber::loadMetadataForObjectClass() must be an instance of
>> Doctrine\Common\Persis*
>> *tence\ObjectManager, instance of Doctrine\ORM\EntityManager given,
>> called in C:\*
>> *
>> xampp\htdocs\mcchipdkr\vendor\gedmo-doctrine-extensions\lib\Gedmo\Timestampable\
>> *
>> *TimestampableListener.php on line 44 and defined in
>> C:\xampp\htdocs\mcchipdkr\ve*
>> *ndor\gedmo-doctrine-extensions\lib\Gedmo\Mapping\MappedEventSubscriber.php
>> on li*
>> *ne 124*
>> *
>> *
>> *Catchable fatal error: Argument 1 passed to
>> Gedmo\Mapping\MappedEventSubscriber:*
>> *:loadMetadataForObjectClass() must be an instance of
>> Doctrine\Common\Persistence*
>> *\ObjectManager, instance of Doctrine\ORM\EntityManager given, called in
>> C:\xampp*
>> *
>> \htdocs\mcchipdkr\vendor\gedmo-doctrine-extensions\lib\Gedmo\Timestampable\Times
>> *
>> *tampableListener.php on line 44 and defined in
>> C:\xampp\htdocs\mcchipdkr\vendor\*
>> *gedmo-doctrine-extensions\lib\Gedmo\Mapping\MappedEventSubscriber.php on
>> line 12*
>> *4*
>>
>>  Seems that I did a mistake in my Entity , annotations ? or is something
>> related to doctrine-common ?
>>
>> Read the README file of DoctrineExtensions: you need to use the master
>> branch of Doctrine\common is you want to use the master branch of the
>> extensions.
>> If you prefer using the 2.0 release, use the 2.0.x branch of the
>> DoctrineExtensions repository. Note that this branch will likely not receive
>> new features anymore.
>>
>> --
>> Christophe | Stof
>>
>>  --
>> 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
>>
>
>
>
> --
> <br>
> Cezar
>



-- 
<br>
Cezar

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

Reply via email to