I want to encapsulate data in my models and only access it via getters and setters. This is a normal OO pattern, but this seems to conflict with the AkInflector which must be calling the getters for reasons unbeknownst to me.
I added some stack logging in AkInflector in the underscore function. Here is the results:
Here one of the getters returns an array (it's a collection). But the inflector is trying to process it.
I think I've messed up here. It looks like it failed because it can't find a collection, because the name of the database field is not the name of the class.
I.e. the field: main_contact_id and the table: contacts.