On 27.10.2010, at 09:23, Tim Nagel wrote:

> I'm pretty sure that D2 wont do this by default and its a function of the 
> DoctrineExtension.
> 
> On Wed, Oct 27, 2010 at 18:21, Lukas Kahwe Smith <[email protected]> wrote:
> 
> On 27.10.2010, at 00:22, Lukas Kahwe Smith wrote:
> 
> >
> > On 26.10.2010, at 23:58, Tim Nagel wrote:
> >
> >> I am encountering similar issues with my extension using Annotations. I 
> >> _think_ it might have something to do with using XML metadata for the base 
> >> class with something else for the extension?
> >>
> >> Will be doing more debugging on that this week.
> >
> > just converted from yaml to xml and now everything works fine .. 
> > generate:entities and generate:proxies.
> 
> 
> i guess the question now is if this is a Symfony2 issue or the more likely 
> case that its a Doctrine2 issue .. in which case the issue should be taken 
> over there.

sigh .. and now using XML it seems to screw up setting the repository class.
    <mapped-superclass name="Application\FooBundle\Entity\User" 
table="doctrine_user_user" 
repository-class="Bundle\DoctrineUserBundle\Entity\UserRepository">

calling $this['doctrine_user.user_repository'] gives me 
Doctrine\ORM\EntityRepository as the repository class and not 
Bundle\DoctrineUserBundle\Entity\UserRepository

        <service id="doctrine_user.user_repository" 
class="Bundle\DoctrineUserBundle\DoctrineUserBundle" shared="true" 
factory-method="getRepository">
            <argument type="service" id="doctrine.orm.default_entity_manager" />
            <argument>%doctrine_user.user_object.class%</argument>
        </service>

regards,
Lukas Kahwe Smith
[email protected]



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

Reply via email to