Clarified comments in Eloquent\Hydrator.

This commit is contained in:
Taylor Otwell 2011-06-22 10:39:52 -07:00
parent dbeb2f4ddb
commit d7aca820e5
1 changed files with 3 additions and 2 deletions

View File

@ -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;