Hi guys,
currently facing a problem when executing this statement:
$skills = \Namespace\Models\Employeeskill::query()
->leftJoin('\Namespace\Models\Technology', '\Namespace\Models\Employeeskill.technologyId = \Namespace\Models\Technology.id')
->where('\Namespace\Models\Employeeskill.employeeId = :userid:', ['userid' => $this->session->get('userid')])
->columns([
'\Namespace\Models\Employeeskill.level',
'\Namespace\Models\Technology.name'
])
->orderBy('\Namespace\Models\Technology.name DESC')
->execute();
I am getting this error:
Unknown model or alias 'Namespace\Models\Technology' (11), when preparing: SELECT \Namespace\Models\Employeeskill.level, \Namespace\Models\Technology.name FROM [Namespace\Models\Employeeskill] LEFT JOIN [\Namespace\Models\Technology] ON \Namespace\Models\Employeeskill.technologyId = \Namespace\Models\Technology.id WHERE \Namespace\Models\Employeeskill.employeeId = :userid: ORDER BY \Namespace\Models\Technology.name DESC
Namespaces are correct and were working before, except for this statement.
Any ideas?