{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/2274","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/2274/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/2274/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/2274/events","html_url":"https://github.com/strongloop/loopback/issues/2274","id":152196309,"number":2274,"title":"Model Inheritance and overwriting parent properties / methods","user":{"login":"manuschiller","id":17978263,"avatar_url":"https://avatars.githubusercontent.com/u/17978263?v=3","gravatar_id":"","url":"https://api.github.com/users/manuschiller","html_url":"https://github.com/manuschiller","followers_url":"https://api.github.com/users/manuschiller/followers","following_url":"https://api.github.com/users/manuschiller/following{/other_user}","gists_url":"https://api.github.com/users/manuschiller/gists{/gist_id}","starred_url":"https://api.github.com/users/manuschiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuschiller/subscriptions","organizations_url":"https://api.github.com/users/manuschiller/orgs","repos_url":"https://api.github.com/users/manuschiller/repos","events_url":"https://api.github.com/users/manuschiller/events{/privacy}","received_events_url":"https://api.github.com/users/manuschiller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback/labels/triage","name":"triage","color":"eb6420"},{"url":"https://api.github.com/repos/strongloop/loopback/labels/waiting","name":"waiting","color":"eeeeee"}],"state":"open","locked":false,"assignee":{"login":"loay","id":1986928,"avatar_url":"https://avatars.githubusercontent.com/u/1986928?v=3","gravatar_id":"","url":"https://api.github.com/users/loay","html_url":"https://github.com/loay","followers_url":"https://api.github.com/users/loay/followers","following_url":"https://api.github.com/users/loay/following{/other_user}","gists_url":"https://api.github.com/users/loay/gists{/gist_id}","starred_url":"https://api.github.com/users/loay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loay/subscriptions","organizations_url":"https://api.github.com/users/loay/orgs","repos_url":"https://api.github.com/users/loay/repos","events_url":"https://api.github.com/users/loay/events{/privacy}","received_events_url":"https://api.github.com/users/loay/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-05-01T12:09:26Z","updated_at":"2016-05-03T07:09:19Z","closed_at":null,"body":"Hi!\r\n\r\nI want to create the the following structure for my models:\r\n\r\n```\r\nParentModel:{\r\n  anyVal1: 10,\r\n  anyVal2: \"abc\",\r\n  anyMethod: registeredRemoteMethod1,\r\n  anyMethod: registeredRemoteMethod2\r\n}\r\n```\r\n\r\n```\r\nChildModel1:{\r\n  //anyVal1: 10, not set, should be inherited from ParentModel\r\n  anyVal2: \"def\", // set, should overwrite ParentModel.anyVal2\r\n  //anyMethod1: registeredRemoteMethod1, not set, should be inherited from ParentModel\r\n  anyMethod: registeredRemoteMethod2 // // set, should overwrite ParentModel.anyMethod2\r\n}\r\n```\r\n\r\nis a structure like that possible with strongloop / loopback?"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/216455281","html_url":"https://github.com/strongloop/loopback/issues/2274#issuecomment-216455281","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/2274","id":216455281,"user":{"login":"manuschiller","id":17978263,"avatar_url":"https://avatars.githubusercontent.com/u/17978263?v=3","gravatar_id":"","url":"https://api.github.com/users/manuschiller","html_url":"https://github.com/manuschiller","followers_url":"https://api.github.com/users/manuschiller/followers","following_url":"https://api.github.com/users/manuschiller/following{/other_user}","gists_url":"https://api.github.com/users/manuschiller/gists{/gist_id}","starred_url":"https://api.github.com/users/manuschiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuschiller/subscriptions","organizations_url":"https://api.github.com/users/manuschiller/orgs","repos_url":"https://api.github.com/users/manuschiller/repos","events_url":"https://api.github.com/users/manuschiller/events{/privacy}","received_events_url":"https://api.github.com/users/manuschiller/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T07:09:18Z","updated_at":"2016-05-03T07:09:18Z","body":"@loay \r\nthanks! Does this overwrite the basemodels (I only need to overwrite custom models) properties or methods by default if the properties / methods have the same name?\r\n\r\nOr will I have to declare an overwrite explicitly?"}}