Fix typo in RelationController (original #2460)
Fixes minor typo initially proposed in #2460, resubmitted here as original author vanished.
This commit is contained in:
parent
e7609aa5e8
commit
a3b98944be
|
|
@ -1243,10 +1243,10 @@ class RelationController extends ControllerBehavior
|
|||
* Save data to models
|
||||
*/
|
||||
$foreignKeyName = $this->relationModel->getQualifiedKeyName();
|
||||
$hyrdatedModels = $this->relationObject->whereIn($foreignKeyName, $foreignIds)->get();
|
||||
$hydratedModels = $this->relationObject->whereIn($foreignKeyName, $foreignIds)->get();
|
||||
$saveData = $this->pivotWidget->getSaveData();
|
||||
|
||||
foreach ($hyrdatedModels as $hydratedModel) {
|
||||
foreach ($hydratedModels as $hydratedModel) {
|
||||
$modelsToSave = $this->prepareModelsToSave($hydratedModel, $saveData);
|
||||
foreach ($modelsToSave as $modelToSave) {
|
||||
$modelToSave->save(null, $this->pivotWidget->getSessionKey());
|
||||
|
|
|
|||
Loading…
Reference in New Issue