when save main model, did not include the foreignkey
EXperimental refactor

Rename the classname and function name
Add new function to extract certain fields
now can extract by Fields

still has outstanding issue with regards to pass-by-reference parameter
remove unnecessary log lines
Using Ceeram suggestions with a workaround exposing getMissingFields

kimsia: else store missing fields in a behavior attribute, and create a
method to retrive them?
[19:11] <kimsia> Ceeram: okay got it. i go try
[19:13] <Ceeram> kimsia: you cant do it indeed, as behavior methods are
called with call_user_func_array, which cant pass by reference
when no records match the conditions and allow another value instead of null
added comments on how to use the function_default_when_null
to handle the results when aggregate query does not return any results
fixed missing parenthesis
added a bindablebehavior class
Add in the getAssoc Behavior
Merge branch 'develop'