Clarified comments in Eloquent\Hydrator.
This commit is contained in:
parent
dbeb2f4ddb
commit
d7aca820e5
|
@ -78,8 +78,9 @@ private static function eagerly($eloquent, &$parents, $include)
|
||||||
// -----------------------------------------------------
|
// -----------------------------------------------------
|
||||||
// Get the relationship Eloquent model.
|
// Get the relationship Eloquent model.
|
||||||
//
|
//
|
||||||
// We temporarily spoof the "belongs_to" key to allow
|
// We temporarily spoof the belongs_to key to allow the
|
||||||
// the query to be fetched without any problems.
|
// query to be fetched without any problems, since the
|
||||||
|
// belongs_to method actually gets the attribute.
|
||||||
// -----------------------------------------------------
|
// -----------------------------------------------------
|
||||||
$eloquent->attributes[$spoof = $include.'_id'] = 0;
|
$eloquent->attributes[$spoof = $include.'_id'] = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue