Closed rblalock closed 12 years ago
Hi Rick,
I understand what you explain but, indeed, we really need the references to the model
object in a record
object. Here is the goal of each of these fields:
_data
: holds the values of the different fields of the recordtable
: the name of the table associated to this modelI however removed the attribute columns
, which gave a direct access to the columns of the model. This involved a duplication of the references to the column definition, which we now access through table.getColumns()
Cheers,
Just noticed by printing out the return object of query() or find() methods really returns a WHOLE bunch of duplicate data. i.e. returns the fields in several different objects within the one object. example - https://gist.github.com/72329972fc50c8f1357c#comments