@@ 913-920 (lines=8) @@ | ||
910 | * @param $songId |
|
911 | * @param array $platformIds |
|
912 | */ |
|
913 | public function storeSongPlatformLinks($songId, array $platformIds) |
|
914 | { |
|
915 | $this->dbConn->delete('songs_x_platforms', ['songId' => $songId]); |
|
916 | ||
917 | foreach ($platformIds as $platformId) { |
|
918 | $this->dbConn->insert('songs_x_platforms', ['songId' => $songId, 'platformId' => $platformId]); |
|
919 | } |
|
920 | } |
|
921 | ||
922 | /** |
|
923 | * @param $name |
|
@@ 968-975 (lines=8) @@ | ||
965 | * @param array $instrumentIds |
|
966 | * @throws \Doctrine\DBAL\Exception\InvalidArgumentException |
|
967 | */ |
|
968 | public function storeSongInstrumentLinks($songId, array $instrumentIds) |
|
969 | { |
|
970 | $this->dbConn->delete('songs_x_instruments', ['songId' => $songId]); |
|
971 | ||
972 | foreach ($instrumentIds as $instrumentId) { |
|
973 | $this->dbConn->insert('songs_x_instruments', ['songId' => $songId, 'instrumentId' => $instrumentId]); |
|
974 | } |
|
975 | } |
|
976 | ||
977 | /** |
|
978 | * @param $songId |