-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
[RTM] Improve the findByIdOrAlias() method #729
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start, but there are a lot more cases I can find:
tl_page::generateAliastl_page::addAliasButtonArticleModel::findByIdOrAliasAndPid
Also, we should probably change the other bundles, as the same rules should apply to news alias etc. in my opinion.
How is this related to this pull request?
They all share the |
You're right, I just quickly searched for
Unfortunately, that's only partially true: https://github.com/aschempp/contao-news-bundle/blob/825cc0992692ace816d213d5c8d66b51697b3c03/src/Resources/contao/models/NewsModel.php#L176-L176 |
|
Yeah sure, there are other methods that could be optimized. |
No description provided.