Zend and static class properties

I'm trying to assign a value to a static class property when defining it:\[code\]namespace Base;abstract class Skeleton { protected static $entityManager = \Zend_Registry::get("EntityManager"); ...}\[/code\]When I try to execute this code I get this error:\[code\]Parse error: syntax error, unexpected '(', expecting ',' or ';' in /var/www/somewhere/application/models/Base/Skeleton.php on line 6\[/code\]If I just assign a simple string value to it:\[code\]protected static $entityManager = "string";\[/code\]Everyting is fine. Am I doing something PHP can't handle? If so, how to solve this?
 
Back
Top