Closed IAmJulianAcosta closed 9 years ago
Sometimes the primary key of the models are not 'id', and I found that is being used this string instead of $primaryKey in some places.
Handler.php if (in_array($obj->id, $links->lists('id'))) continue;
Model.php $relations[$relation] = $value->id; ///////////////// $relations[$relation] = array_pluck($value, 'id');
Good spot @IAmJulianAcosta. Feel free to do a pull request?
Created #3
Sometimes the primary key of the models are not 'id', and I found that is being used this string instead of $primaryKey in some places.