Hi Jon

I also run into some problems after updating doctrine ORM, since
latest changes to symfony 2, seems like you need to change all
PARAMETER_XXX variables to VALUE_XXX.

After applying the patch the commands run fine.

Best regards,
Joaquin


On Tue, Dec 7, 2010 at 12:28 PM, Jonathan Wage <[email protected]> wrote:
> Make sure you update everything including the ORM.
> - Jon
>
> On Mon, Dec 6, 2010 at 11:51 PM, webPragmatist <[email protected]>
> wrote:
>>
>> I'm using git://github.com/fabpot/symfony.git at rev
>> a832885960e6f12270af57afe9258ea8e21be7b2
>>
>> app/console doctrine:mapping:import "Bundle\PageBundle" annotation
>>
>> still returns the getConfiguration error mentioned.
>>
>> On Dec 6, 6:42 am, Eduardo García Sanz <[email protected]>
>> wrote:
>> > Oh well, I'm usinghttps://github.com/symfony/symfony-sandbox.gitlast
>> > commit
>> > e5b5c53cd0c8a1302b11<https://github.com/symfony/symfony-sandbox/commit/e5b5c53cd0c8a1302b1...>and
>> > trying to...
>> >
>> > $ php app/console doctrine:mapping:import "Application\HelloBundle" xml
>> >
>> > leads me to...
>> >
>> > Fatal error: Call to a member function getConfiguration() on a
>> > non-object in
>> >
>> > /home/proyectos/akai/src/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php
>> > on line 135
>> >
>> > Am I missing something or is this related?
>> >
>> > On Sat, Dec 4, 2010 at 12:42 PM, Johannes Heinen <
>> >
>> > [email protected]> wrote:
>> > > Thank you very much :)
>> >
>> > > On 3 Dez., 18:57, Jonathan Wage <[email protected]> wrote:
>> > > > Hi,
>> >
>> > > > I fixed the bug in the ORM so if you just update your vendor
>> > > > repository
>> > > it
>> > > > should be good to go.
>> >
>> > > > Thanks, Jon
>> >
>> > > > On Fri, Dec 3, 2010 at 5:33 AM, Johannes Heinen <
>> >
>> > > > [email protected]> wrote:
>> > > > > Uhm... i cannot confirm this, it seems to work for me. Thanks very
>> > > > > much! Finally doctrine:generate:entities works so that all getters
>> > > > > and
>> > > > > setters of an annotated class are generated on-the fly as i
>> > > > > expected -
>> > > > > ignoring the setter for the autoincremented ID attribute. Nice!
>> >
>> > > > > But... i recently realized that the mapping:convert command also
>> > > > > seems
>> > > > > to be broken due to the same problem - The Class
>> >
>> > > > >
>> > > > >  Symfony\Bundle\DoctrineBundle\Command\ConvertMappingDoctrineCommand
>> >
>> > > > > does not extend the
>> >
>> > > > >   Symfony\Bundle\DoctrineBundle\Command\DoctrineCommand
>> >
>> > > > > but extends
>> >
>> > > > >   Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand
>> >
>> > > > > directly which seems to be broken in line 99 (in fabiens master).
>> > > > > I
>> > > > > did a file search for "new DisconnectedClassMetadataFactory($em)"
>> > > > > -
>> > > > > not reliable, but only for guessing if there may be other
>> > > > > occurances,
>> > > > > but these seems to be the only ones.
>> >
>> > > > > Just wanted to mention that, perhaps it has already been fixed.
>> >
>> > > > > On 3 Dez., 11:06, Amaury Leroux de Lens <[email protected]>
>> > > > > wrote:
>> > > > > > Hi,
>> >
>> > > > > > i just applied the patch and get no output on
>> > > > > > $ php app/console --verbose doctrine:generate:entities
>> >
>> > > > > > does anyone got this either ?
>> >
>> > > > > > On Dec 3, 1:43 am, Jonathan Wage <[email protected]> wrote:
>> >
>> > > > > > > I committed it to github.com/jwage/symfony and sent a pull
>> > > > > > > request
>> > > to
>> > > > > fabien
>> > > > > > > so he will merge it to github.com/fabpot/symfony.
>> >
>> > > > > > > - Jon
>> >
>> > > > > > > On Thu, Dec 2, 2010 at 5:13 PM, Fabrizio <
>> > > [email protected]
>> > > > > >wrote:
>> >
>> > > > > > > > How can update the sandbox of Symfony2 PR4 in order to
>> > > incorporate
>> > > > > the
>> > > > > > > > fix? I installed it with:
>> >
>> > > > > > > > git clonehttps://
>> > > github.com/symfony/symfony-sandbox.gitfolderName
>> >
>> > > > > > > > Thanks
>> >
>> > > > > > > > On 2 Dic, 21:54, Jonathan Wage <[email protected]> wrote:
>> > > > > > > > > Hi,
>> >
>> > > > > > > > > Thanks, this is fixed now!
>> >
>> > > > > > > > > - Jon
>> >
>> > > > > > > > > On Wed, Dec 1, 2010 at 10:10 AM, Johannes Heinen <
>> >
>> > > > > > > > > [email protected]> wrote:
>> > > > > > > > > > Hi,
>> >
>> > > > > > > > > > thank you! The ticket may be found here:
>> > > > > > > > > >http://trac.symfony-project.org/ticket/9315#preview
>> >
>> > > > > > > > > > No patch, no unit test, sorry :( Too unfamliar with the
>> > > > > sourcecode to
>> > > > > > > > > > do qualified proposals...
>> >
>> > > > > > > > > > On 1 Dez., 16:28, Benjamin Eberlei <[email protected]>
>> > > wrote:
>> > > > > > > > > > > you are right please open up a ticket and assign it to
>> > > jwage
>> > > > > :-)
>> >
>> > > > > > > > > > > On Wed, 1 Dec 2010 07:19:57 -0800 (PST), Johannes
>> > > > > > > > > > > Heinen
>> >
>> > > > > > > > > > > <[email protected]> wrote:
>> > > > > > > > > > > > Hi,
>> >
>> > > > > > > > > > > > could you please confirm the following issue as a
>> > > > > > > > > > > > bug? I
>> > > am
>> > > > > unsure
>> > > > > > > > if
>> > > > > > > > > > > > it is a valid issue and worth a ticket:
>> >
>> > > > > > > > > > > > Calling
>> >
>> > > > > > > > > > > >     $ ./console doctrine:generate:repositories
>> >
>> > > > > > > > > > > > leads to a fatal error:
>> >
>> > > > > > > > > > > >     "Call to a member function getConfiguration() on
>> > > > > > > > > > > > a
>> > > > > non-object
>> > > > > > > > > > > > in ....src/vendor/doctrine/lib/Doctrine/ORM/Mapping/
>> > > > > > > > > > > > ClassMetadataFactory.php on line 135"
>> >
>> > > > > > > > > > > > It seams that the class
>> > > Symfony\Bundle\DoctrineBundle\Command
>> > > > > > > > > > > > \SymfonyDisconnectedClassMetadataFactory cannot find
>> > > > > > > > > > > > a
>> > > valid
>> > > > > entity
>> > > > > > > > > > > > manager ($this->em === NULL).
>> >
>> > > > > > > > > > > > The instance is created in
>> >
>> > > > > > > > > > > >     Symfony\Bundle\DoctrineBundle\Command
>> > > > > > > > > > > > \DoctrineCommand::getBundleMetadatas(Bundle $bundle)
>> >
>> > > > > > > > > > > > Line  142.
>> >
>> > > > > > > > > > > > Neither SymfonyDisconnectedClassMetadataFactory nor
>> > > > > > > > > > > > one
>> > > of
>> > > > > its
>> > > > > > > > > > > > ancestors supports an EntityManager as a constructor
>> > > > > argument, so
>> > > > > > > > man
>> > > > > > > > > > > > should use
>> >
>> > > > > > > > > > > >     $cmf = new
>> > > > > > > > > > > > SymfonyDisconnectedClassMetadataFactory();
>> > > > > > > > > > > >     $cmf->setEntityManager($em);
>> >
>> > > > > > > > > > > > to pass an instance instead of injecting it into the
>> > > > > constructur,
>> > > > > > > > as
>> > > > > > > > > > > > it takes place now:
>> >
>> > > > > > > > > > > >     $cmf = new
>> > > SymfonyDisconnectedClassMetadataFactory($em);
>> >
>> > > > > > > > > > > > Could you please rate my report as something like
>> > > > > "unimportant" or
>> > > > > > > > > > > > "you're right, open a ticket" or something like
>> > > > > > > > > > > > that?
>> > > Thanks!
>> > > > > :)
>> >
>> > > > > > > > > > > > and greetings
>> > > > > > > > > > > > johannes
>> >
>> > > > > > > > > > --
>> > > > > > > > > > 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 developers" group.
>> > > > > > > > > > To post to this group, send email to
>> > > > > [email protected]
>> > > > > > > > > > To unsubscribe from this group, send email to
>> > > > > > > > > >
>> > > > > > > > > > [email protected]<symfony-devs%[email protected]>
>> > > <symfony-devs%2bunsubscr...@google groups.com>
>> > > > > <symfony-devs%2bunsubscr...@google groups.com>
>> > > > > > > >
>> > > > > > > > <symfony-devs%[email protected]<symfony-devs%[email protected]>
>> > > <symfony-devs%252bunsubscr...@g ooglegroups.com>
>> > > > > <symfony-devs%252bunsubscr...@g ooglegroups.com>
>> >
>> > > > > > > > > > For more options, visit this group at
>> > > > > > > > > >http://groups.google.com/group/symfony-devs?hl=en
>> >
>> > > > > > > > > --
>> > > > > > > > > Jonathan H. Wagehttp://www.twitter.com/jwage
>> >
>> > > > > > > > --
>> > > > > > > > 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 developers" group.
>> > > > > > > > To post to this group, send email to
>> > > [email protected]
>> > > > > > > > To unsubscribe from this group, send email to
>> > > > > > > >
>> > > > > > > > [email protected]<symfony-devs%[email protected]>
>> > > <symfony-devs%2bunsubscr...@google groups.com>
>> > > > > <symfony-devs%2bunsubscr...@google groups.com>
>> > > > > > > > For more options, visit this group at
>> > > > > > > >http://groups.google.com/group/symfony-devs?hl=en
>> >
>> > > > > > > --
>> > > > > > > Jonathan H. Wagehttp://www.twitter.com/jwage
>> >
>> > > > > --
>> > > > > 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 developers" group.
>> > > > > To post to this group, send email to [email protected]
>> > > > > To unsubscribe from this group, send email to
>> > > > >
>> > > > > [email protected]<symfony-devs%[email protected]>
>> > > <symfony-devs%2bunsubscr...@google groups.com>
>> > > > > For more options, visit this group at
>> > > > >http://groups.google.com/group/symfony-devs?hl=en
>> >
>> > > > --
>> > > > Jonathan H. Wagehttp://www.twitter.com/jwage
>> >
>> > > --
>> > > 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 developers" group.
>> > > To post to this group, send email to [email protected]
>> > > To unsubscribe from this group, send email to
>> > >
>> > > [email protected]<symfony-devs%[email protected]>
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/symfony-devs?hl=en
>>
>> --
>> 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 developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-devs?hl=en
>
>
>
> --
> Jonathan H. Wage
> http://www.twitter.com/jwage
>
> --
> 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 developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>

-- 
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 developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Attachment: doctrine-orm.patch
Description: Binary data

Reply via email to