{"action":"opened","issue":{"url":"https://api.github.com/repos/phalcon/zephir/issues/1085","labels_url":"https://api.github.com/repos/phalcon/zephir/issues/1085/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/zephir/issues/1085/comments","events_url":"https://api.github.com/repos/phalcon/zephir/issues/1085/events","html_url":"https://github.com/phalcon/zephir/issues/1085","id":107107603,"number":1085,"title":"zephir throw a CompilerException when `this` is used to call a function of implemented class","user":{"login":"mateusdemboski","id":2401670,"avatar_url":"https://avatars.githubusercontent.com/u/2401670?v=3","gravatar_id":"","url":"https://api.github.com/users/mateusdemboski","html_url":"https://github.com/mateusdemboski","followers_url":"https://api.github.com/users/mateusdemboski/followers","following_url":"https://api.github.com/users/mateusdemboski/following{/other_user}","gists_url":"https://api.github.com/users/mateusdemboski/gists{/gist_id}","starred_url":"https://api.github.com/users/mateusdemboski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateusdemboski/subscriptions","organizations_url":"https://api.github.com/users/mateusdemboski/orgs","repos_url":"https://api.github.com/users/mateusdemboski/repos","events_url":"https://api.github.com/users/mateusdemboski/events{/privacy}","received_events_url":"https://api.github.com/users/mateusdemboski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-18T00:31:25Z","updated_at":"2015-09-18T00:31:25Z","closed_at":null,"body":"Hi, I'm trying convert my project (based on Vökuró) to zephir, but i have an error when i try compile the next script:\r\n\r\n``` zephir\r\nnamespace Project\\Forms;\r\n\r\nuse Phalcon\\Forms\\Form;\r\nuse Phalcon\\Forms\\Element\\Text;\r\nuse Phalcon\\Forms\\Element\\Password;\r\nuse Phalcon\\Forms\\Element\\Submit;\r\nuse Phalcon\\Forms\\Element\\Check;\r\nuse Phalcon\\Forms\\Element\\Hidden;\r\nuse Phalcon\\Validation\\Validator\\PresenceOf;\r\nuse Phalcon\\Validation\\Validator\\Email;\r\nuse Phalcon\\Validation\\Validator\\Identical;\r\n\r\nclass LoginForm extends Form\r\n{\r\n\r\n    public function initialize()\r\n    {\r\n\r\n        var email, password, remember, csrf, securityToken;\r\n\r\n        // Email\r\n        let email = new Text(\"email\", [\r\n            \"placeholder\": \"Email\",\r\n            \"class\": \"form-control\"\r\n        ]);\r\n\r\n        email->addValidators([\r\n            new PresenceOf([\r\n                \"message\": \"The e-mail is required\"\r\n            ]),\r\n            new Email([\r\n                \"message\": \"The e-mail is not valid\"\r\n            ])\r\n        ]);\r\n\r\n        this->add(email);\r\n\r\n        // Password\r\n        let password = new Password(\"password\", [\r\n            \"placeholder\": \"Password\",\r\n            \"class\": \"form-control\"\r\n        ]);\r\n\r\n        password->addValidator(new PresenceOf([\r\n            \"message\":  \"The password is required\"\r\n        ]));\r\n\r\n        password->clear();\r\n\r\n        this->add(password);\r\n\r\n        // Remember\r\n        let remember = new Check(\"remember\", [\r\n            \"value\": \"yes\"\r\n        ]);\r\n\r\n        this->add(remember);\r\n\r\n        // CSRF\r\n        let csrf = new Hidden(\"csrf\");\r\n\r\n        let securityToken = this->security->getSessionToken();\r\n\r\n        csrf->addValidator(new Identical([\r\n            \"value\": securityToken,\r\n            \"message\": \"CSRF validation failed\"\r\n        ]));\r\n\r\n        this->add(csrf);\r\n\r\n        this->add(new Submit(\"Login\", [\r\n            \"class\": \"btn btn-primary btn-block btn-flat\"\r\n        ]));\r\n    }\r\n}\r\n```\r\nThe compiler throw the follow error:\r\n`Zephir\\CompilerException: Class 'Project\\Forms\\LoginForm' does not have a property called: 'security' in /home/mateusdemboski/Documents/zephir/project/project/Forms/loginform.zep on line 62`\r\n\r\nO.S.: Elementary 0.3.1 (Ubuntu 14.04).\r\nZephir version: 0.7.1b"}}