On 21 October 2014 21:44, <[email protected]> wrote:

Hi,
> Is there any way to change cached (e.g. memcache) metadata? I've tried
> loadClassMetadata event but it looks like the event is working without
> cache only.
> I just need add some fields to existing metadata entity in some cases.
>
> Alternatively, I could create another class and inherit from existing
> entity but I get 'No entity manager defined for class' error. It's symfony2
> error but occurs after invoke getManagerForClass from
> Doctrine\Common\Persistence\AbstractManagerRegistry.
>
> I'm using Doctrine 2.4.
>

Mappings are not designed to be modified at runtime: after they are cached,
they should never be modified.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to