private function updateReferences(Table &$table) {
        $this->ignoreThis();
        foreach ($table->getBackReferences() as $array) {
            foreach ($array as $ref) {
                if (in_array($ref['refTable'], $this->getIgnore()))
                    continue;

                $refTable = new Table($ref['refTable'], $table->getConnection());
                $modelClass = self::getModelTable($ref['refTable']);
                if (!empty($modelClass)) {
                    $mapper = is_array($modelClass) ?
                            new $modelClass[count($modelClass) - 1] :
                            new $modelClass;
                    $mapper->setConnection($table->getConnection());
                    $mapper->init($refTable, $this->getIgnore());
                }
            }
        }
    }
private function updateReferences(Table &$table) {
        $this->ignoreThis();
        foreach ($table->getBackReferences() as $array) {
            foreach ($array as $ref) {
                if (in_array($ref['refTable'], $this->getIgnore()))
                    continue;

                $refTable = new Table($ref['refTable'], $table->getConnection());
                $modelClass = self::getModelTable($ref['refTable']);
                if (!empty($modelClass)) {
                    $mapper = is_array($modelClass) ?
                            new $modelClass[count($modelClass) - 1] :
                            new $modelClass;
                    $mapper->setConnection($table->getConnection());
                    $mapper->init($refTable, $this->getIgnore());
                }
            }
        }
    }
private function updateReferences ( Table & $ table ) { $ this -> ignoreThis ( ) ; foreach ( $ table -> getBackReferences ( ) as $ array ) { foreach ( $ array as $ ref ) { if ( in_array ( $ ref [ 'refTable' ] , $ this -> getIgnore ( ) ) ) continue ; $ refTable = new Table ( $ ref [ 'refTable' ] , $ table -> getConnection ( ) ) ; $ modelClass = self :: getModelTable ( $ ref [ 'refTable' ] ) ; if ( ! empty ( $ modelClass ) ) { $ mapper = is_array ( $ modelClass ) ? new $ modelClass [ count ( $ modelClass ) - 1 ] : new $ modelClass ; $ mapper -> setConnection ( $ table -> getConnection ( ) ) ; $ mapper -> init ( $ refTable , $ this -> getIgnore ( ) ) ; } } } }
Updates tables that reference current table
@param Table $table
Updates tables that reference current table