Added "pivot" method to has_many_and_belongs_to.

This commit is contained in:
Taylor Otwell
2012-03-22 09:07:21 -05:00
parent 1929cadcb8
commit 453d4154f2
2 changed files with 24 additions and 10 deletions

View File

@@ -136,7 +136,7 @@ class Query {
// any pivot columns that are on the model.
if ($this instanceof Relationships\Has_Many_And_Belongs_To)
{
$this->pivot($models);
$this->hydrate_pivot($models);
}
return $models;