@@ 270-277 (lines=8) @@ | ||
267 | * |
|
268 | * @return Album[] |
|
269 | */ |
|
270 | public function getAlbums() |
|
271 | { |
|
272 | return OwnerAlbum::getAlbumsQuery([ |
|
273 | 'owner' => $this->tableName(), |
|
274 | 'ownerId' => $this->id, |
|
275 | 'ownerAttribute' => 'albums', |
|
276 | ])->all(); |
|
277 | } |
|
278 | } |
|
279 |
@@ 304-311 (lines=8) @@ | ||
301 | * |
|
302 | * @return Album[] |
|
303 | */ |
|
304 | public function getAlbums() |
|
305 | { |
|
306 | return OwnerAlbum::getAlbumsQuery([ |
|
307 | 'owner' => $this->tableName(), |
|
308 | 'ownerId' => $this->id, |
|
309 | 'ownerAttribute' => 'albums', |
|
310 | ])->all(); |
|
311 | } |
|
312 | } |
|
313 |
@@ 280-287 (lines=8) @@ | ||
277 | * |
|
278 | * @return Album[] |
|
279 | */ |
|
280 | public function getAlbums() |
|
281 | { |
|
282 | return OwnerAlbum::getAlbumsQuery([ |
|
283 | 'owner' => $this->tableName(), |
|
284 | 'ownerId' => $this->id, |
|
285 | 'ownerAttribute' => 'albums', |
|
286 | ])->all(); |
|
287 | } |
|
288 | } |
|
289 |