Open twothreenine opened 4 months ago
@twothreenine I think it best to not use the alias at all. Just use oa.article_version
. (The || article
can actually be removed from the current alias - OrderArticle
's article_version_id
is not nullable.)
I renamed the issue to match my suggestion.
I'd suggest the following approach for order_article:
Then we could replace it wherever we are sure and improve readability, without having to catch all places where it's called.
@lentschi If you could give me some feedback on this suggestion (do you think version would be the most fitting name for the method?) I could implement that.