don't know if anybody mentioned it yet, but overriding models is not possible anyways, at least not with the DoctrineBundle.
It would just be too complicated to guarantee it works internally, say for example you have Entity A you want to override, but it is using Inheritance, so B extends A and C extends A. Now how would overriding A work? There is just no sane way to do it. On Mon, 31 Jan 2011 23:12:21 +0100, Thomas Rabaix <[email protected]> wrote: > Hello, > > Sorry to come that late but the last decision, about the Application > namespace removal, will be a failure [1] > > A vendor published a bundle, now I need to extends a Model (not template > neither a resource). For now they is no solution to do so. > > - model association definition does not work with resource declaration, ie > : BlogBundle:Post > - for retrieving the class name we need to use the entity manager => this > introduces a deep dependency > - how it is possible to access to constant ? or use a new constant ? > > Symfony2 need a shared namespace for model definition. A bundle is not a > black box, a bunble need to be easily extendable, for now this not work for > model. > > [1] > https://github.com/symfony/symfony-sandbox/commit/fd9ed41a9b2c288fa455dcaee96a48bbbadb7314 -- 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
