There was an error while loading. Please reload this page.
The save array is generated by the data array of a model into a structure that is easiest to use with aql::insert and aql::update.
array( 'table_name' => array( 'fields' => array( 'field_name' => FIELD VALUE ), 'id' => TABLE ID ) )
Ordered by foreign key dependency, so that the tables will save in the correct order.
Each table array can have subquery arrays and submodel arrays.
If the model is:
artist { name [album]s }
The data array will have multiple album objects (these need to be defined, as in AQL Models)
album