{"action":"created","issue":{"url":"https://api.github.com/repos/propelorm/Propel2/issues/1121","repository_url":"https://api.github.com/repos/propelorm/Propel2","labels_url":"https://api.github.com/repos/propelorm/Propel2/issues/1121/labels{/name}","comments_url":"https://api.github.com/repos/propelorm/Propel2/issues/1121/comments","events_url":"https://api.github.com/repos/propelorm/Propel2/issues/1121/events","html_url":"https://github.com/propelorm/Propel2/issues/1121","id":132216111,"number":1121,"title":"Streamline Table/Entity get*Name() methods","user":{"login":"gossi","id":283700,"avatar_url":"https://avatars.githubusercontent.com/u/283700?v=3","gravatar_id":"","url":"https://api.github.com/users/gossi","html_url":"https://github.com/gossi","followers_url":"https://api.github.com/users/gossi/followers","following_url":"https://api.github.com/users/gossi/following{/other_user}","gists_url":"https://api.github.com/users/gossi/gists{/gist_id}","starred_url":"https://api.github.com/users/gossi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gossi/subscriptions","organizations_url":"https://api.github.com/users/gossi/orgs","repos_url":"https://api.github.com/users/gossi/repos","events_url":"https://api.github.com/users/gossi/events{/privacy}","received_events_url":"https://api.github.com/users/gossi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-08T18:02:06Z","updated_at":"2016-03-11T14:02:22Z","closed_at":"2016-03-11T14:02:22Z","body":"I'm using the model `Table` class lately. The get*Name() methods are very unconvenient and seem random, too. For examle there is `getCommonName()` which actually is the prefixed table name and then there is `getOriginCommonName()`, which returns the blank table name - so why is the common name the table name? So, looks like there was common name first and the somebody realized it didn't return what they expected and that's why there is origin common name? They don't feel like intuitive.\r\nOn the other hand there is `getPhpName()` which does what it says, I lately even realized `getCamelCaseName()`, which returns the `getPhpName()` as camel case, for easy use in variables, which is great, too.\r\nAfter all, it is not very convenient to work with all these methods as they also follow different principles. I'd wish to have a more consistent API about names. Especially from a code generation point of view this can be very handy to collect all necessary getters, turn them into a convention and apply them on the other models as well (as far as they are present there)."},"comment":{"url":"https://api.github.com/repos/propelorm/Propel2/issues/comments/195376578","html_url":"https://github.com/propelorm/Propel2/issues/1121#issuecomment-195376578","issue_url":"https://api.github.com/repos/propelorm/Propel2/issues/1121","id":195376578,"user":{"login":"marcj","id":450980,"avatar_url":"https://avatars.githubusercontent.com/u/450980?v=3","gravatar_id":"","url":"https://api.github.com/users/marcj","html_url":"https://github.com/marcj","followers_url":"https://api.github.com/users/marcj/followers","following_url":"https://api.github.com/users/marcj/following{/other_user}","gists_url":"https://api.github.com/users/marcj/gists{/gist_id}","starred_url":"https://api.github.com/users/marcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcj/subscriptions","organizations_url":"https://api.github.com/users/marcj/orgs","repos_url":"https://api.github.com/users/marcj/repos","events_url":"https://api.github.com/users/marcj/events{/privacy}","received_events_url":"https://api.github.com/users/marcj/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T14:02:22Z","updated_at":"2016-03-11T14:02:22Z","body":"Those name will be change with new data-mapper branch, beside that I don't see any miss-consistency that are worth to fix it. But if you want to try to make the API slimmer, feel free to provide a pull-request."}}