File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,28 +110,6 @@ public function getDataAndRelatedData(): array {
110110 /** @psalm-suppress MixedArrayOffset */
111111 $ data [$ relation ] = $ this ->related_data [$ relation ]->getDataAndRelatedData ();
112112
113- } elseif (\is_array ($ this ->related_data [$ relation ])) {
114-
115- /** @psalm-suppress MixedArrayOffset */
116- $ data [$ relation ] = [];
117-
118- foreach ($ this ->related_data [$ relation ] as $ record ) {
119-
120- if (
121- $ record instanceof Record
122- || $ record instanceof ReadOnlyRecord
123- ) {
124- // definitely an array of records
125- /** @psalm-suppress MixedArrayOffset */
126- $ data [$ relation ][] = $ record ->getDataAndRelatedData ();
127-
128- } else {
129-
130- /** @psalm-suppress MixedArrayOffset */
131- $ data [$ relation ][] = $ record ;
132- }
133- }
134-
135113 } else {
136114
137115 /** @psalm-suppress MixedArrayOffset */
You can’t perform that action at this time.
0 commit comments