Skip to content
This repository was archived by the owner on Mar 1, 2018. It is now read-only.

Commit 5bc6c16

Browse files
committed
* called custom getter to allow user modifications. should work for doctrine and propel alike
1 parent 4e4eabd commit 5bc6c16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/routing/sfImageTransformRoute.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ protected function doConvertObjectToArray($object)
104104
{
105105
try
106106
{
107-
$parameter = $object->get($variable);
107+
$getter = 'get'.ucfirst($variable);
108+
$parameter = $object->$getter();
108109
$parameters[$variable] = $parameter;
109110
}
110111
catch(Exception $e){/* do nothing */}

0 commit comments

Comments
 (0)