Karaka-Management / phpOMS

PHP Framework
Other
2 stars 0 forks source link

Implement a model reading system which allows to define alternative conditions/wheres #365

Open spl1nes opened 7 months ago

spl1nes commented 7 months ago

In some cases we want to be able to load a model based on alternative column values if our first or second condition didn't match.

One of the most common examples is loading localization.

  1. Load response language
  2. Load server language
  3. Load 'en'
  4. Load any

The ReadMapper already includes the ALT keyword for where comparisons. Test this, if not fix it or implement an alternative solution.