-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[query] Selector does not allow specification of mixin #217
Comments
I guess we would need to additionally have a field for mixinTypes in the schema:
and add it to the node type clause method: https://github.com/jackalope/jackalope-doctrine-dbal/blob/master/src/Jackalope/Transport/DoctrineDBAL/Query/QOMWalker.php#L900 |
we currently only store the mixin inside the props XML data? now if we extract this from the XML data, then we will have to deal with the fact that it can in fact be multiple mixins and of course there is also inheritance there. Maybe it might make sense to have a separate table with the mapping of the mixins. We then determine if the selector is a node type or a mixin. If it is a mixin, we join that additional table. This would also make it easier to not require schema changes for current running code. |
Would it make sense to have both primary node types and mixins in that table so we handle both things in the same place |
if I specify a node type in the FROM, then the current DB schema works quite well and is very performant. Now in the case when a mixin is specified we would need an additional join per selector with a mixin. In this table we would store the mixin's assigned explicitly to the node. Inheritance is likely better handled by generating a list of possible mixin's inside the query. In this sense I do not see any benefit if also having the node type in that table. |
The doctrine dbal selector does not seem to support selecting from mixin types, for example
sulu:content
is a mixin type:http://www.day.com/specs/jcr/2.0/6_Query.html#6.7.3 Selector:
Jackrabbit supports mixin as selector.
The text was updated successfully, but these errors were encountered: