@@ -591,7 +591,7 @@ class User extends ActiveRecordCommon implements IdentityInterface | |||
public function getFavoritePointSale() | |||
{ | |||
$arrayUserPointSale = UserPointSale::find() | |||
->innerJoinWith('pointSale') | |||
->innerJoinWith('pointSale', true) | |||
->where([ | |||
'user_point_sale.id_user' => $this->id, | |||
'point_sale.id_producer' => Producer::getId() |