{"action":"created","issue":{"url":"https://api.github.com/repos/cfwheels/cfwheels/issues/501","labels_url":"https://api.github.com/repos/cfwheels/cfwheels/issues/501/labels{/name}","comments_url":"https://api.github.com/repos/cfwheels/cfwheels/issues/501/comments","events_url":"https://api.github.com/repos/cfwheels/cfwheels/issues/501/events","html_url":"https://github.com/cfwheels/cfwheels/issues/501","id":90940480,"number":501,"title":"Unbelievable errors with a model called \"tea\"","user":{"login":"DommoD","id":13048687,"avatar_url":"https://avatars.githubusercontent.com/u/13048687?v=3","gravatar_id":"","url":"https://api.github.com/users/DommoD","html_url":"https://github.com/DommoD","followers_url":"https://api.github.com/users/DommoD/followers","following_url":"https://api.github.com/users/DommoD/following{/other_user}","gists_url":"https://api.github.com/users/DommoD/gists{/gist_id}","starred_url":"https://api.github.com/users/DommoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DommoD/subscriptions","organizations_url":"https://api.github.com/users/DommoD/orgs","repos_url":"https://api.github.com/users/DommoD/repos","events_url":"https://api.github.com/users/DommoD/events{/privacy}","received_events_url":"https://api.github.com/users/DommoD/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cfwheels/cfwheels/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-25T11:54:42Z","updated_at":"2015-06-26T09:56:11Z","closed_at":null,"body":"I have a simple application for testing with the models \"tea\" and \"type\". A \"type\" has many \"teas\" with \"dependent = deleteAll\" and a \"tea\" belongs to a \"type\".\r\n\r\nIf I want to delete a type, I get the following error message:\r\n\"The method deleteAllteas was not found in the type model.\"\r\n\r\nBut I can load the objects with the dynamic shortcut method \"type.teas()\".\r\n\r\nIf I rename everywhere \"tea\" into \"teadrink\", all functions works fine and as desired.\r\n\r\nIs it possible that \"tea\" and/or \"teas\" is a reserved key word in CFWheels? I couldn't find something about that in the code or the documentation."},"comment":{"url":"https://api.github.com/repos/cfwheels/cfwheels/issues/comments/115619290","html_url":"https://github.com/cfwheels/cfwheels/issues/501#issuecomment-115619290","issue_url":"https://api.github.com/repos/cfwheels/cfwheels/issues/501","id":115619290,"user":{"login":"DommoD","id":13048687,"avatar_url":"https://avatars.githubusercontent.com/u/13048687?v=3","gravatar_id":"","url":"https://api.github.com/users/DommoD","html_url":"https://github.com/DommoD","followers_url":"https://api.github.com/users/DommoD/followers","following_url":"https://api.github.com/users/DommoD/following{/other_user}","gists_url":"https://api.github.com/users/DommoD/gists{/gist_id}","starred_url":"https://api.github.com/users/DommoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DommoD/subscriptions","organizations_url":"https://api.github.com/users/DommoD/orgs","repos_url":"https://api.github.com/users/DommoD/repos","events_url":"https://api.github.com/users/DommoD/events{/privacy}","received_events_url":"https://api.github.com/users/DommoD/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T09:56:11Z","updated_at":"2015-06-26T09:56:11Z","body":"CFWheels finds the own deleteAllteas method which I have defined in the model \"Type.cfc\"."}}