Baleen\Migrations\Migration\VersionRepository\MigrationRepository¶
-
class
MigrationRepository
¶ Class MigrationRepository.
-
setMigrationFactory
(FactoryInterface $factory)¶ -
Parameters: - $factory (FactoryInterface) –
-
getMigrationFactory
()¶ Returns the migration factory. Creates a new SimpleFactory object for it if none was configured.
Returns: FactoryInterface
-
fetchAll
()¶ -
Returns: Linked
-
doFetchAll
()¶ Must fetch all versions available to the repository, load them with their migrations, and return them as a Linked collection. It must use a factory (default or supplied by ‘setMigrationFactory()’) to instantiate each of the migrations.
Returns: mixed
-
setComparator
(ComparatorInterface $comparator)¶ Parameters: - $comparator (ComparatorInterface) –
-
getComparator
()¶ Returns: ComparatorInterface
-