- OVERVIEW
- DEVELOPMENT NOTE

- ObjectAdaptor::Store

# OVERVIEW

# DEVELOPMENT NOTE

## ObjectAdaptor::Store

'_insert' method is to store the corresponding object. However, in many cases, only knowing the object itself is not enough, while the some referent objects, in SQL term, foreign keys, are required.

the interface of this method is shown below,

      sub _insert {
          my ($self, $obj, $fks)=@_;

lkjasd

'$obj' is the object you want to store.
'$fks' is the hash reference, with keys of foreign key name and values as the foreign key ids or referent objects.

The order of store

1. Shared children, like Location to Person
2. the object itself.
3. Others after getting the dbID

- asdlkjasfl
- lkajsldkfj