public function getMigration() {
        $query = $this->db()->createQueryBuilder()
          ->select('m.*')
          ->from($this->table, 'm')
          ->where('migration = ?')
          ->setParameter(0, get_class($this));
        $results = $query->execute();
        $migration = $results->fetch();

        if (!$migration) {
            $this->create();
            return true; //Is not in the DB so is new and is pending
        }

        return $migration;
    }
public function getMigration() {
        $query = $this->db()->createQueryBuilder()
          ->select('m.*')
          ->from($this->table, 'm')
          ->where('migration = ?')
          ->setParameter(0, get_class($this));
        $results = $query->execute();
        $migration = $results->fetch();

        if (!$migration) {
            $this->create();
            return true; //Is not in the DB so is new and is pending
        }

        return $migration;
    }
public function getMigration ( ) { $ query = $ this -> db ( ) -> createQueryBuilder ( ) -> select ( 'm.*' ) -> from ( $ this -> table , 'm' ) -> where ( 'migration = ?' ) -> setParameter ( 0 , get_class ( $ this ) ) ; $ results = $ query -> execute ( ) ; $ migration = $ results -> fetch ( ) ; if ( ! $ migration ) { $ this -> create ( ) ; return true ; //Is not in the DB so is new and is pending } return $ migration ; }
Gets the information in the DB of this migration.
@return mixed
Gets the information in the DB of this migration .