/**
  * init cache connection
  *
  * @param ICache $cache
  * @param AbstractDatabase $db
  */
 public function __construct(ICache $cache, AbstractDatabase $db = null)
 {
     $this->relation = new \SplFixedArray();
     $this->modelDataCache = [];
     $this->tableData = new MySQLTableData($db);
     $this->paramTransformer = new DynamicSQLParameter();
     parent::__construct($cache, $db);
 }