private function alterManyToMany(Model $model, Field $oldField, Field $newField, $strict = false)
    {
        //Rename the through table
        if ($oldField->relation->through->getMeta()->getDbTable() != $newField->relation->through->getMeta()
                ->getDbTable()) {
            $this->alterDbTable(
                $oldField->relation->through,
                $oldField->relation->through->getMeta()->getDbTable(),
                $newField->relation->through->getMeta()->getDbTable()
            );
        }
    }
private function alterManyToMany(Model $model, Field $oldField, Field $newField, $strict = false)
    {
        //Rename the through table
        if ($oldField->relation->through->getMeta()->getDbTable() != $newField->relation->through->getMeta()
                ->getDbTable()) {
            $this->alterDbTable(
                $oldField->relation->through,
                $oldField->relation->through->getMeta()->getDbTable(),
                $newField->relation->through->getMeta()->getDbTable()
            );
        }
    }
private function alterManyToMany ( Model $ model , Field $ oldField , Field $ newField , $ strict = false ) { //Rename the through table if ( $ oldField -> relation -> through -> getMeta ( ) -> getDbTable ( ) != $ newField -> relation -> through -> getMeta ( ) -> getDbTable ( ) ) { $ this -> alterDbTable ( $ oldField -> relation -> through , $ oldField -> relation -> through -> getMeta ( ) -> getDbTable ( ) , $ newField -> relation -> through -> getMeta ( ) -> getDbTable ( ) ) ; } }
Alters M2Ms to repoint their to= endpoints.

@param Model      $model
@param Field      $oldField
@param Field      $newField
@param bool|false $strict

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>

@throws \Doctrine\DBAL\DBALException
Alters M2Ms to repoint their to = endpoints .