From bc15b927572d3a517873bd5f333c6e392dce4a83 Mon Sep 17 00:00:00 2001 From: kphoen Date: Wed, 31 Oct 2012 19:33:12 +0100 Subject: [PATCH] Fix: using the "with" option in ParamConverters triggered a notice The following notice was triggered: Runtime Notice: Only variables should be passed by reference in /home/vagrant/www/project/vendor/propel/propel-bundle/Propel/PropelBundle/Request/ParamConverter/PropelParamConverter.php line 193 --- Request/ParamConverter/PropelParamConverter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Request/ParamConverter/PropelParamConverter.php b/Request/ParamConverter/PropelParamConverter.php index 8e44916..33839a2 100644 --- a/Request/ParamConverter/PropelParamConverter.php +++ b/Request/ParamConverter/PropelParamConverter.php @@ -190,7 +190,8 @@ class PropelParamConverter implements ParamConverterInterface if (!$this->hasWith) { return $query->findOne(); } else { - return reset($query->find()); + $results = $query->find(); + return reset($results); } }