Sasha
68a7de2610
fix(db-postgres): select hasMany inside arrays and blocks with versions ( #10829 )
...
Fixes https://github.com/payloadcms/payload/issues/10780
Previously, with enabled versions, nested select `hasMany: true` fields
weren't working with SQL database adapters. This was due to wrongly
passed `parent` to select rows data because we store arrays and blocks
in versions a bit differently, using both, `id` and `_uuid` (which
contains the normal Object ID) columns. And unlike with non versions
`_uuid` column isn't actually applicable here as it's not unique, thus
we need to save blocks/arrays first and then map their ObjectIDs to
generated by the database IDs and use them for select fields `parent`
data
2025-01-31 18:26:04 +02:00
..
2025-01-27 14:41:35 -05:00
2024-12-28 05:28:37 +00:00
2025-01-28 11:24:07 +00:00
2024-11-27 20:36:37 +00:00
2024-11-16 15:30:05 -05:00
2024-11-27 20:36:37 +00:00
2024-12-28 05:28:37 +00:00
2024-12-28 05:28:37 +00:00
2025-01-17 09:42:46 -05:00
2025-01-21 02:18:13 +02:00
2024-11-27 20:36:37 +00:00
2024-09-20 22:46:40 -04:00
2024-12-18 22:44:04 -05:00
2025-01-27 14:41:35 -05:00
2024-11-27 20:36:37 +00:00
2024-11-27 20:36:37 +00:00
2024-11-27 20:36:37 +00:00
2024-11-27 20:36:37 +00:00
2024-11-27 20:36:37 +00:00
2024-12-28 05:28:37 +00:00
2024-11-27 20:36:37 +00:00
2025-01-31 18:26:04 +02:00
2025-01-24 03:47:49 +00:00
2024-11-27 20:36:37 +00:00
2024-12-13 15:03:57 -05:00
2024-12-16 17:22:17 +02:00
2025-01-24 01:58:45 +00:00
2025-01-29 13:27:00 -05:00
2024-11-27 20:36:37 +00:00
2024-10-30 17:56:50 +00:00
2025-01-29 19:52:22 +02:00
2025-01-13 14:51:26 +00:00
2025-01-03 18:10:46 +00:00
2024-08-13 12:54:33 -04:00
2025-01-22 16:20:13 -05:00
2024-12-19 22:22:43 -05:00
2025-01-14 21:17:25 +00:00
2024-12-10 08:42:23 -05:00
2024-11-27 20:36:37 +00:00
2024-11-27 20:36:37 +00:00
2024-11-27 20:36:37 +00:00
2024-12-31 09:14:56 -05:00
2024-12-28 05:28:37 +00:00
2025-01-24 10:10:49 -05:00
2025-01-27 13:28:15 +00:00
2024-11-27 20:36:37 +00:00
2024-12-19 22:22:43 -05:00
2024-11-27 20:36:37 +00:00
2024-12-19 22:22:43 -05:00
2024-12-19 22:22:43 -05:00
2024-11-27 20:36:37 +00:00
2025-01-14 22:38:31 -05:00
2025-01-31 18:25:47 +02:00
2024-07-23 13:44:44 -04:00
2024-12-21 07:42:44 -05:00
2024-11-27 20:36:37 +00:00
2024-11-27 20:36:37 +00:00
2024-11-27 20:36:37 +00:00
2024-11-27 20:36:37 +00:00
2024-11-27 20:36:37 +00:00
2024-12-16 21:40:22 +00:00
2025-01-14 20:00:00 -03:00
2025-01-22 16:20:13 -05:00
2025-01-30 19:45:47 +00:00
2024-07-11 15:59:38 -04:00
2024-05-25 15:45:05 +00:00
2025-01-24 01:58:45 +00:00
2023-09-01 14:45:41 -04:00
2024-03-07 11:33:46 -05:00
2025-01-20 11:34:51 -05:00
2024-12-31 09:14:56 -05:00
2024-09-20 22:46:40 -04:00
2024-12-20 20:13:28 +00:00
2024-12-19 11:08:17 -05:00
2024-08-13 12:54:33 -04:00
2024-11-11 19:28:55 -07:00
2024-09-16 17:02:08 +00:00
2025-01-17 09:16:29 -05:00
2024-09-16 17:02:08 +00:00
2024-11-11 13:59:05 -05:00
2024-10-11 18:54:39 +00:00
2025-01-20 11:34:51 -05:00
2024-10-11 18:54:39 +00:00
2024-12-17 14:49:29 -05:00
2024-11-11 13:59:05 -05:00
2025-01-24 03:47:49 +00:00
2024-05-01 17:35:41 -04:00
2025-01-14 21:17:25 +00:00
2024-11-11 13:59:05 -05:00
2024-08-14 08:57:04 -04:00
2024-08-14 08:57:04 -04:00
2024-10-14 20:02:26 +00:00
2025-01-15 14:47:46 -05:00
2024-04-06 15:06:04 -04:00
2024-06-17 14:25:36 -04:00
2024-12-17 14:49:29 -05:00
2024-03-14 23:53:47 -04:00
2025-01-14 20:00:00 -03:00
2025-01-14 20:00:00 -03:00