From 37cf2123092da7a04724488450d6ba1b4186106a Mon Sep 17 00:00:00 2001 From: Stefano Sonzogni Date: Fri, 13 Sep 2024 14:58:33 +0000 Subject: [PATCH] fix missing team photo part 2 --- src/Model/Table/UsersTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Table/UsersTable.php b/src/Model/Table/UsersTable.php index e2d5ca8d..b8b6267e 100644 --- a/src/Model/Table/UsersTable.php +++ b/src/Model/Table/UsersTable.php @@ -153,7 +153,7 @@ public function findAuth(SelectQuery $query, mixed ...$args): SelectQuery { return $query ->contain(['Teams' => function (SelectQuery $q): SelectQuery { - return $q->select(['id', 'name', 'photo_dir', 'user_id', 'championship_id']) + return $q->select(['id', 'name', 'photo', 'photo_dir', 'user_id', 'championship_id']) ->contain([ 'Championships' => function (SelectQuery $q): SelectQuery { return $q->select(['id', 'league_id', 'season_id', 'started'])