Hello everybody, I am trying to create a group of parameters to complete a rows selection based on two models with a relationship. I need to concatenate the 'NombreRuta' and 'FechaRuta' columns from the Georutaline model and the 'SalesRepEntityRef_FullName' column from the Salesrep model.
But I am getting the following message: "Unknown model or alias 'Salesrep'"
Thank you in advance. Happy quarentine.
$parametros = array(
'conditions' => 'Featured = 1',
'columns' => 'RutaID, CONCAT(NombreRuta, ", ", FechaRuta, ", ", Salesrep.SalesRepEntityRef_FullName) AS RutaNombre'
);
$rutas = Georutaline::find($parametros);