Quote Originally Posted by harmodrew View Post
but why the previous code doesn't work?
Did you check what geometry() returns from within the constructor?