Merge remote-tracking branch 'upstream/develop' into develop
This commit is contained in:
commit
17e75a9719
2
artisan
2
artisan
|
@ -4,7 +4,7 @@
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* Laravel - A PHP Framework For Web Artisans
|
||||||
*
|
*
|
||||||
* @package Laravel
|
* @package Laravel
|
||||||
* @version 3.2.2
|
* @version 3.2.3
|
||||||
* @author Taylor Otwell <taylorotwell@gmail.com>
|
* @author Taylor Otwell <taylorotwell@gmail.com>
|
||||||
* @link http://laravel.com
|
* @link http://laravel.com
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -89,7 +89,7 @@ public function match($relationship, &$children, $parents)
|
||||||
|
|
||||||
foreach ($children as &$child)
|
foreach ($children as &$child)
|
||||||
{
|
{
|
||||||
$parent = array_first($parents, function($k, $v) use ($child, $foreign)
|
$parent = array_first($parents, function($k, $v) use (&$child, $foreign)
|
||||||
{
|
{
|
||||||
return $v->get_key() == $child->$foreign;
|
return $v->get_key() == $child->$foreign;
|
||||||
});
|
});
|
||||||
|
|
|
@ -93,7 +93,7 @@ public function match($relationship, &$parents, $children)
|
||||||
|
|
||||||
foreach ($parents as &$parent)
|
foreach ($parents as &$parent)
|
||||||
{
|
{
|
||||||
$matching = array_filter($children, function($v) use ($parent, $foreign)
|
$matching = array_filter($children, function($v) use (&$parent, $foreign)
|
||||||
{
|
{
|
||||||
return $v->$foreign == $parent->get_key();
|
return $v->$foreign == $parent->get_key();
|
||||||
});
|
});
|
||||||
|
|
|
@ -327,7 +327,7 @@ public function match($relationship, &$parents, $children)
|
||||||
|
|
||||||
foreach ($parents as &$parent)
|
foreach ($parents as &$parent)
|
||||||
{
|
{
|
||||||
$matching = array_filter($children, function($v) use ($parent, $foreign)
|
$matching = array_filter($children, function($v) use (&$parent, $foreign)
|
||||||
{
|
{
|
||||||
return $v->pivot->$foreign == $parent->get_key();
|
return $v->pivot->$foreign == $parent->get_key();
|
||||||
});
|
});
|
||||||
|
|
|
@ -40,7 +40,7 @@ public function match($relationship, &$parents, $children)
|
||||||
|
|
||||||
foreach ($parents as &$parent)
|
foreach ($parents as &$parent)
|
||||||
{
|
{
|
||||||
$matching = array_first($children, function($k, $v) use ($parent, $foreign)
|
$matching = array_first($children, function($k, $v) use (&$parent, $foreign)
|
||||||
{
|
{
|
||||||
return $v->$foreign == $parent->get_key();
|
return $v->$foreign == $parent->get_key();
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,6 +2,8 @@ # Laravel Change Log
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
|
- [Laravel 3.2.3](#3.2.3)
|
||||||
|
- [Upgrading From 3.2.2](#upgrade-3.2.3)
|
||||||
- [Laravel 3.2.2](#3.2.2)
|
- [Laravel 3.2.2](#3.2.2)
|
||||||
- [Upgrading From 3.2.1](#upgrade-3.2.2)
|
- [Upgrading From 3.2.1](#upgrade-3.2.2)
|
||||||
- [Laravel 3.2.1](#3.2.1)
|
- [Laravel 3.2.1](#3.2.1)
|
||||||
|
@ -29,6 +31,17 @@ ## Contents
|
||||||
- [Laravel 3.1](#3.1)
|
- [Laravel 3.1](#3.1)
|
||||||
- [Upgrading From 3.0](#upgrade-3.1)
|
- [Upgrading From 3.0](#upgrade-3.1)
|
||||||
|
|
||||||
|
<a name="3.2.3"></a>
|
||||||
|
## Laravel 3.2.3
|
||||||
|
|
||||||
|
- Fixed eager loading bug in Eloquent.
|
||||||
|
- Added `laravel.resolving` event for all IoC resolutions.
|
||||||
|
|
||||||
|
<a name="upgrade-3.2.3"></a>
|
||||||
|
## Upgrading From 3.2.2
|
||||||
|
|
||||||
|
- Replace the **laravel** folder.
|
||||||
|
|
||||||
<a name="3.2.2"></a>
|
<a name="3.2.2"></a>
|
||||||
## Laravel 3.2.2
|
## Laravel 3.2.2
|
||||||
|
|
||||||
|
|
|
@ -129,6 +129,8 @@ public static function resolve($type, $parameters = array())
|
||||||
static::$singletons[$type] = $object;
|
static::$singletons[$type] = $object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Event::fire('laravel.resolving', array($type, $object));
|
||||||
|
|
||||||
return $object;
|
return $object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* Laravel - A PHP Framework For Web Artisans
|
||||||
*
|
*
|
||||||
* @package Laravel
|
* @package Laravel
|
||||||
* @version 3.2.2
|
* @version 3.2.3
|
||||||
* @author Taylor Otwell <taylorotwell@gmail.com>
|
* @author Taylor Otwell <taylorotwell@gmail.com>
|
||||||
* @link http://laravel.com
|
* @link http://laravel.com
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* Laravel - A PHP Framework For Web Artisans
|
||||||
*
|
*
|
||||||
* @package Laravel
|
* @package Laravel
|
||||||
* @version 3.2.2
|
* @version 3.2.3
|
||||||
* @author Taylor Otwell <taylorotwell@gmail.com>
|
* @author Taylor Otwell <taylorotwell@gmail.com>
|
||||||
* @link http://laravel.com
|
* @link http://laravel.com
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue