public function diffChangeLog($output = null, $metadata = null)
    {
        $output = $this->sanitizeOutputParameter($output);
        $metadata = $this->sanitizeMetadatas($metadata);

        $sm = $this->em->getConnection()->getSchemaManager();

        $fromSchema = $sm->createSchema();
        $this->removeLiquibaseTables($fromSchema);
        $toSchema = $this->getSchemaFromMetadata($metadata);

        $comparator = new Comparator();
        $schemaDiff = $comparator->compare($fromSchema, $toSchema);

        return $this->diffChangeLogFromSchemaDiff($schemaDiff, $output);
    }
public function diffChangeLog($output = null, $metadata = null)
    {
        $output = $this->sanitizeOutputParameter($output);
        $metadata = $this->sanitizeMetadatas($metadata);

        $sm = $this->em->getConnection()->getSchemaManager();

        $fromSchema = $sm->createSchema();
        $this->removeLiquibaseTables($fromSchema);
        $toSchema = $this->getSchemaFromMetadata($metadata);

        $comparator = new Comparator();
        $schemaDiff = $comparator->compare($fromSchema, $toSchema);

        return $this->diffChangeLogFromSchemaDiff($schemaDiff, $output);
    }
public function diffChangeLog ( $ output = null , $ metadata = null ) { $ output = $ this -> sanitizeOutputParameter ( $ output ) ; $ metadata = $ this -> sanitizeMetadatas ( $ metadata ) ; $ sm = $ this -> em -> getConnection ( ) -> getSchemaManager ( ) ; $ fromSchema = $ sm -> createSchema ( ) ; $ this -> removeLiquibaseTables ( $ fromSchema ) ; $ toSchema = $ this -> getSchemaFromMetadata ( $ metadata ) ; $ comparator = new Comparator ( ) ; $ schemaDiff = $ comparator -> compare ( $ fromSchema , $ toSchema ) ; return $ this -> diffChangeLogFromSchemaDiff ( $ schemaDiff , $ output ) ; }
Generate a diff changelog from differences between actual database state and doctrine metadata.

@param LiquibaseOutput|LiquibaseOutputOptions|null $output
@param array|null $metadata
@return \DOMDocument|mixed
@throws \Doctrine\ORM\ORMException
Generate a diff changelog from differences between actual database state and doctrine metadata .