I try to use the Phalcon\Mvc\Model\Manager in this way :
$query = $this->modelsManager->createQuery( "SELECT t.KeyName, l.ID, ifnull(tv.Value, '') as Value FROM Translation t left join TranslationValue tv on tv.TranslationID = t.ID left join Locale l on l.ID = tv.LocaleID where LocaleID = :id: or (tv.Value is null or l.ID is null)"); $translation = $query->execute(array( 'id' => $locale->getFirst()->ID ));
When the execute method is execute, I'm getting this message :
Model 'Translation' could not be loaded.
The model class Translation is in a namespace => namespace NearbyMe\Backend\Models;
Does the Phalcon\Mvc\Model\Manager can introspect a class within a namespace ?
If a use $Transaction::find() there is no problem, but I don't have my children the way I need them.