Commit d7aca820 by Taylor Otwell

Clarified comments in Eloquent\Hydrator.

parent dbeb2f4d
...@@ -78,8 +78,9 @@ class Hydrator { ...@@ -78,8 +78,9 @@ class Hydrator {
// ----------------------------------------------------- // -----------------------------------------------------
// 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment