{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/9336","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/9336/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/9336/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/9336/events","html_url":"https://github.com/symfony/symfony/issues/9336","id":21218978,"number":9336,"title":"[PropertyAccess] Allow different prefixes than \"add\" and \"remove\"","user":{"login":"webmozart","id":176399,"avatar_url":"https://avatars.githubusercontent.com/u/176399?v=3","gravatar_id":"","url":"https://api.github.com/users/webmozart","html_url":"https://github.com/webmozart","followers_url":"https://api.github.com/users/webmozart/followers","following_url":"https://api.github.com/users/webmozart/following{/other_user}","gists_url":"https://api.github.com/users/webmozart/gists{/gist_id}","starred_url":"https://api.github.com/users/webmozart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmozart/subscriptions","organizations_url":"https://api.github.com/users/webmozart/orgs","repos_url":"https://api.github.com/users/webmozart/repos","events_url":"https://api.github.com/users/webmozart/events{/privacy}","received_events_url":"https://api.github.com/users/webmozart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Feature","name":"Feature","color":"02e10c"},{"url":"https://api.github.com/repos/symfony/symfony/labels/PropertyAccess","name":"PropertyAccess","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2013-10-18T13:28:52Z","updated_at":"2016-03-06T08:15:06Z","closed_at":null,"body":"Currently, adders and removers must be prefixed with \"add\" and \"remove\". When applying DDD, this sometimes doesn't make sense, for example:\r\n\r\n```php\r\nclass Contact\r\n{\r\n    public function addGroup(ContactGroup $group) { }\r\n    public function removeGroup(ContactGroup $group) { }\r\n}\r\n```\r\n\r\nHere it would make much more sense to prefix the methods with \"join\" and \"leave\":\r\n\r\n```php\r\nclass Contact\r\n{\r\n    public function joinGroup(ContactGroup $group) { }\r\n    public function leaveGroup(ContactGroup $group) { }\r\n}\r\n```\r\n\r\nThe PropertyAccessor should provide a way to use these methods."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/192827639","html_url":"https://github.com/symfony/symfony/issues/9336#issuecomment-192827639","issue_url":"https://api.github.com/repos/symfony/symfony/issues/9336","id":192827639,"user":{"login":"Ocramius","id":154256,"avatar_url":"https://avatars.githubusercontent.com/u/154256?v=3","gravatar_id":"","url":"https://api.github.com/users/Ocramius","html_url":"https://github.com/Ocramius","followers_url":"https://api.github.com/users/Ocramius/followers","following_url":"https://api.github.com/users/Ocramius/following{/other_user}","gists_url":"https://api.github.com/users/Ocramius/gists{/gist_id}","starred_url":"https://api.github.com/users/Ocramius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ocramius/subscriptions","organizations_url":"https://api.github.com/users/Ocramius/orgs","repos_url":"https://api.github.com/users/Ocramius/repos","events_url":"https://api.github.com/users/Ocramius/events{/privacy}","received_events_url":"https://api.github.com/users/Ocramius/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T08:15:06Z","updated_at":"2016-03-06T08:15:06Z","body":" > and as far as I know (ping @Ocramius) this is WIP.\r\n\r\nIt's not something for ORM 2.x anyway. We are crunching on it, but far from getting anywhere soon, sorry."}}