{"action":"opened","issue":{"url":"https://api.github.com/repos/geocoder-php/GeocodableBehavior/issues/35","labels_url":"https://api.github.com/repos/geocoder-php/GeocodableBehavior/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/geocoder-php/GeocodableBehavior/issues/35/comments","events_url":"https://api.github.com/repos/geocoder-php/GeocodableBehavior/issues/35/events","html_url":"https://github.com/geocoder-php/GeocodableBehavior/issues/35","id":95085677,"number":35,"title":"geocodable conflicts with concrete_inheritance","user":{"login":"miklcct","id":2827264,"avatar_url":"https://avatars.githubusercontent.com/u/2827264?v=3","gravatar_id":"","url":"https://api.github.com/users/miklcct","html_url":"https://github.com/miklcct","followers_url":"https://api.github.com/users/miklcct/followers","following_url":"https://api.github.com/users/miklcct/following{/other_user}","gists_url":"https://api.github.com/users/miklcct/gists{/gist_id}","starred_url":"https://api.github.com/users/miklcct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miklcct/subscriptions","organizations_url":"https://api.github.com/users/miklcct/orgs","repos_url":"https://api.github.com/users/miklcct/repos","events_url":"https://api.github.com/users/miklcct/events{/privacy}","received_events_url":"https://api.github.com/users/miklcct/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-15T02:03:38Z","updated_at":"2015-07-15T02:03:38Z","closed_at":null,"body":"When a table with concrete_inheritance inherits from a table with geocodable, the resulting class cannot be used:\r\n\r\n    <table name=\"ContactItem\">\r\n        <behavior name=\"geocodable\" />\r\n        <column name=\"public\" type=\"BOOLEAN\" required=\"true\"\r\n                defaultValue=\"false\"/>\r\n        <column name=\"phone\" size=\"15\"/>\r\n        <column name=\"email\" size=\"254\">\r\n            <vendor type=\"mysql\">\r\n                <parameter name=\"Charset\" value=\"utf8\"/>\r\n                <parameter name=\"Collate\" value=\"utf8_unicode_ci\"/>\r\n            </vendor>\r\n        </column>\r\n        <column name=\"website\" size=\"2048\"/>\r\n        <column name=\"address\" type=\"LONGVARCHAR\"/>\r\n        <column name=\"district_id\" type=\"VARCHAR\" size=\"32\"/>\r\n        <foreign-key foreignTable=\"District\" onDelete=\"restrict\"\r\n                     onUpdate=\"restrict\">\r\n            <reference local=\"district_id\" foreign=\"id\"/>\r\n        </foreign-key>\r\n    </table>\r\n    <table name=\"Person\">\r\n        <behavior name=\"concrete_inheritance\">\r\n            <parameter name=\"extends\" value=\"ContactItem\"/>\r\n        </behavior>\r\n        <column name=\"first_name\" required=\"true\" size=\"35\"/>\r\n        <column name=\"last_name\" required=\"true\" size=\"35\"/>\r\n        <column name=\"password\"/>\r\n        <column name=\"remember_token\"/>\r\n        <column name=\"gender\" type=\"BOOLEAN\"/>\r\n        <column name=\"birthday\" type=\"DATE\"/>\r\n    </table>\r\n\r\nThe getDistanceTo() method generated as a result of inheriting from the base class is not compatible to the base class:\r\n\r\n       [ErrorException]                                                                                                                                                                                                               \r\n      Declaration of App\\Models\\Base\\Person::getDistanceTo() should be compatible with App\\Models\\Base\\Contactitem::getDistanceTo(App\\Models\\Contactitem $contactitem, $unit = App\\Models\\Map\\ContactitemTableMap::KILOMETERS_UNIT)  \r\n\r\nThe generated method should refer to the base object instead of this object."}}