On 26 November 2014 at 21:34, Menno Holtkamp <[email protected]>
wrote:

> @Marco, why would this impose a security threat? As soon as a malicious
> user has access to the metadata, the shit has already hit the fan ;)
>

Fair point


> @Sebastian, it might be possible to include fragments of XML documents
> instead of complete documents using XPointer
> <http://stackoverflow.com/questions/16563106/how-to-use-xpointer-with-xinclude-to-reference-elements>,
> also see the W3C docs <http://www.w3.org/TR/xinclude/#xml-included-items>.
> Not sure about the support PHP / SimpleXMLElement / DOMDocument has for
> this...
> @Sebastian, my feeling is this would allow better re-use of Entities
> amongst different projects. My feeling is that when the XML Driver supports
> it and the metadata "does not know" where it comes from, it should be
> feasible, since a Trait is a run-time copy-paste of code as well. Whether
> it would preferred to put energy into this... not sure, also see
> Benjamin's stance on Traits
> <http://www.whitewashing.de/2013/04/12/traits_are_static_access.html>.
>

I don't think I ever saw a use-case for re-using traits in first place, so
I don't think it's useful to go down the rabbit hole to find out that we
are solving the 0.1% use-case.
Also consider that traits have no actual meaning on their own until used in
a concrete implementation.

What I can think of is allowing marking traits as MappedSuperclasses, which
would indeed fit the concept.

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