Added related model updating from belongs_to relationship.

This commit is contained in:
Taylor Otwell
2012-03-17 23:14:01 -05:00
parent 68b4e55336
commit fcff36a0ac
4 changed files with 42 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ abstract class Relationship extends Query {
{
if ( ! is_null($foreign)) return $foreign;
// If the model is an object, we will simply get the class of the object and
// If the model is an object we'll simply get the class of the object and
// then take the basename, which is simply the object name minus the
// namespace, and we'll append "_id" to the name.
if (is_object($model))