Dynamic arguments for SelectQueryInterface::orderBy().

Created on 8 December 2012, about 12 years ago
Updated 29 August 2023, over 1 year ago

Use case:
Fetching from menu_links, I want to say

$query->orderBy('ml.language != :language', 'ASC', array(':language' => LANGUAGE_NONE));

There are probably more examples.
Unfortunately, orderBy() does not support dynamic arguments.

✨ Feature request
Status

Closed: outdated

Version

9.5

Component
DatabaseΒ  β†’

Last updated 2 days ago

  • Maintained by
  • πŸ‡³πŸ‡±Netherlands @daffie
Created by

πŸ‡©πŸ‡ͺGermany donquixote

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Brought this up with @donquixote in #contribute in slack

    Actually, the issue does mention a workaround.
    If there are no others requesting this feature, we could close it for now.

    If still a valid feature request please reopen, maybe updating issue summary.

    Thanks1

Production build 0.71.5 2024