void _orderDataObjects(
$dataObjects)
|
|
sorts the localDataObjects array to reflect referential integrity.
When data is loaded into linked tables, either at system setup time, or during refresh data event, records with references to local key values of other tables should be loaded after the records they refer to was loaded and local key values what will be the foreign keys were generated pre: none post: the localDataObjects array will be sorted in such a way that for each table Y with references to local_key values in table X, table X will be located at a lower array index than table Y. Tables that are 'select only' will be put at the beginning of the array (even if these tables have references to linked tables with local_key values, they will always have the remote_key value as their foreign key)
Tags:
Parameters: