Populator
Populator
Responsible for populating the database with InitialData, i.e. non-product data such as countries, tax rates, shipping methods, payment methods & roles.
Signature
class Populator {
populateInitialData(data: InitialData, channel?: Channel) => ;
populateCollections(data: InitialData, channel?: Channel) => ;
}
populateInitialData
method
(data: InitialData, channel?: Channel) =>
Should be run before populating the products, so that there are TaxRates by which
product prices can be set. If the channel
argument is set, then any ChannelAware
entities will be assigned to that Channel.
populateCollections
method
(data: InitialData, channel?: Channel) =>
Should be run after the products have been populated, otherwise the expected FacetValues will not yet exist.