src/Migrator.php
protected function migrated($className)
    {
        $classInfo = new ReflectionClass($className);
        $fileName  = str_replace('.php', '', basename($classInfo->getFileName()));

        $result = $this->connection->createQueryBuilder()->select('version')
            ->from('schema_migrations')
            ->where('version = ?')
            ->setParameter(0, $fileName)
            ->execute();

        if (!count($result->fetchAll())) {
            return $fileName;
        } else {
            return false;
        }
    }
protected function migrated($className)
    {
        $classInfo = new ReflectionClass($className);
        $fileName  = str_replace('.php', '', basename($classInfo->getFileName()));

        $result = $this->connection->createQueryBuilder()->select('version')
            ->from('schema_migrations')
            ->where('version = ?')
            ->setParameter(0, $fileName)
            ->execute();

        if (!count($result->fetchAll())) {
            return $fileName;
        } else {
            return false;
        }
    }
protected function migrated ( $ className ) { $ classInfo = new ReflectionClass ( $ className ) ; $ fileName = str_replace ( '.php' , '' , basename ( $ classInfo -> getFileName ( ) ) ) ; $ result = $ this -> connection -> createQueryBuilder ( ) -> select ( 'version' ) -> from ( 'schema_migrations' ) -> where ( 'version = ?' ) -> setParameter ( 0 , $ fileName ) -> execute ( ) ; if ( ! count ( $ result -> fetchAll ( ) ) ) { return $ fileName ; } else { return false ; } }
Checks if the migration has been executed and returns the migrations
base file name.

@param string $className

@return string
Checks if the migration has been executed and returns the migrations base file name .