{"action":"created","issue":{"url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1926","repository_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire","labels_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1926/labels{/name}","comments_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1926/comments","events_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1926/events","html_url":"https://github.com/ryancramerdesign/ProcessWire/issues/1926","id":166066004,"number":1926,"title":"class Users overwrites pageClass","user":{"login":"schefflerinc","id":11853264,"avatar_url":"https://avatars.githubusercontent.com/u/11853264?v=3","gravatar_id":"","url":"https://api.github.com/users/schefflerinc","html_url":"https://github.com/schefflerinc","followers_url":"https://api.github.com/users/schefflerinc/followers","following_url":"https://api.github.com/users/schefflerinc/following{/other_user}","gists_url":"https://api.github.com/users/schefflerinc/gists{/gist_id}","starred_url":"https://api.github.com/users/schefflerinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schefflerinc/subscriptions","organizations_url":"https://api.github.com/users/schefflerinc/orgs","repos_url":"https://api.github.com/users/schefflerinc/repos","events_url":"https://api.github.com/users/schefflerinc/events{/privacy}","received_events_url":"https://api.github.com/users/schefflerinc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-18T10:43:01Z","updated_at":"2016-07-18T11:22:40Z","closed_at":"2016-07-18T11:22:40Z","body":"Hi,\r\n\r\ni followed these two tutorials:\r\nhttps://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users\r\nand\r\nhttps://processwire.com/docs/tutorials/using-custom-page-types-in-processwire/ \r\n\r\nWhen I call `wire('pages')->get(id)` I get a page with the correct class. \r\nWhen I call `wire('users')->get(id)` afterwards, it returns an instance of the correct class, too.\r\nBut when I call `wire('users')->get(id)` without loading the the User via `wire('pages')` before,\r\nI get an instance of class `User`.\r\n\r\nI fixed this problem by modifying `Users` by adding the following method:\r\n```\r\npublic function getPageClass() {\r\n        return '';\r\n    }\r\n```\r\nBut I'm not sure, if there are any sideeffects.\r\nIs there any other way to have custom classes (extending `User`) for ProcessWire Users?\r\nOr is there any other way to have multiple different User classes with some kind of inheritance in them?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/comments/233303457","html_url":"https://github.com/ryancramerdesign/ProcessWire/issues/1926#issuecomment-233303457","issue_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1926","id":233303457,"user":{"login":"schefflerinc","id":11853264,"avatar_url":"https://avatars.githubusercontent.com/u/11853264?v=3","gravatar_id":"","url":"https://api.github.com/users/schefflerinc","html_url":"https://github.com/schefflerinc","followers_url":"https://api.github.com/users/schefflerinc/followers","following_url":"https://api.github.com/users/schefflerinc/following{/other_user}","gists_url":"https://api.github.com/users/schefflerinc/gists{/gist_id}","starred_url":"https://api.github.com/users/schefflerinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schefflerinc/subscriptions","organizations_url":"https://api.github.com/users/schefflerinc/orgs","repos_url":"https://api.github.com/users/schefflerinc/repos","events_url":"https://api.github.com/users/schefflerinc/events{/privacy}","received_events_url":"https://api.github.com/users/schefflerinc/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T11:22:40Z","updated_at":"2016-07-18T11:22:40Z","body":"Ahh, nice. Thanks. Did not find this one -.-"}}
{"actor":{"display_login":"schefflerinc"}}