I’m drawing a blank and having a hard time with google today, but how can I create a model variable to get only the 1st record in the table (the table will only ever hold 1 record)?
Normally, I do
$model = UserConfig::findOne([‘CurrencyCode’ => $CurrencyCode]);
but now the criteria is no longer required. I tried using limit() but that didn’t work. What is the proper way of simply returning a model with the first record in a table?