Hello,

I recently started using PHPTAL and Doctrine. Unfrotunatly I cannot access
some properties like:

<div tal:repeat="comment post/Comment">

but this works:

<div tal:repeat="comment php:post.Comment">

After deleting "else" from PHPTAL\Context.php, line: 279:
            // ask __get and discard if it returns null
            /*else*/ if (method_exists($base,'__get') &&
is_callable(array($base, '__get')))
            {
                $tmp = $base->$current;
                if (NULL !== $tmp){
                    $base = $tmp;
                    continue;
                }
            }

it works fine.

Is this a bug in PHPTAL or maybe Doctrine programmers made something strange
or...? I am not a pro php programmer, so maybe I am wrong :)
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to