-
Notifications
You must be signed in to change notification settings - Fork 41
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
Globally unique alias #158
Comments
@KDederichs I have a similar issue… did you ever figure out a good solution? |
@KDederichs Why are you trying to solve this problem through global unique aliases? What prevents you from manually manipulating aliases and ensuring their uniqueness on their own? |
In general nothing, but it would be extra work if you have a big project with a lot of nested Specs that multiple people work on. |
I am currently working on a large project and there is a big nesting of specifications and we do not have any particular problems. For example we have a
And for example, i want to get a slice of published $questionnaires = $this->rep->match(Spec::andX(
new PublishedQuestionnaires('c', 'ct', 'u'),
new Slice($slice_size, $slice_number),
Spec::orderBy('join_at', 'DESC', 'ct'),
));
|
A similar solution is implemented in PR #273 and available in release 2.0. $questionnaires = $this->rep->match(Spec::andX(
new PublishedQuestionnaires(),
new Slice($slice_size, $slice_number),
Spec::orderBy('contestant.join_at', 'DESC'),
));
|
Hey,
I've got a question regarding aliases, is there a possibility to get globally unique aliases?
I'm trying to prevent that multiple specs use the same alias which probably would cause some sort of interference.
I tried generating an alias with uniqid but that seems to be called multiple times somehow and so the alias on the join and where condition is different.
The text was updated successfully, but these errors were encountered: