Commit 20ada015 by Damien Moulard

Merge branch 'develop' of gl.cooperatic.fr:cooperatic/kohinos-tav into develop

parents 4bafcfee f565c7cf
......@@ -82,9 +82,12 @@ Création des tables et des contraintes :
Charger les fixtures standards :
Pour une instance non TAV :
**$ php bin/console hautelook:fixtures:load --purge-with-truncate --env=pro**
Pour une instance TAV :
**$ php bin/console hautelook:fixtures:load --purge-with-truncate --env=tav**
**$ php bin/console hautelook:fixtures:load --purge-with-truncate --env=tavpro**
Vous obtiendrez cette erreur ci dessous, c'est normal !
......@@ -94,9 +97,12 @@ There is no main category related to context: rubrique
**$ php bin/console sonata:media:fix-media-context**
Pour une instance non TAV :
**$ php bin/console hautelook:fixtures:load --append --env=pro**
Pour une instance TAV :
**$ php bin/console hautelook:fixtures:load --append --env=tav**
**$ php bin/console hautelook:fixtures:load --append --env=tavpro**
Supprimer le cache (si besoin)
......
......@@ -38,17 +38,22 @@ final class Version20220329182822 extends AbstractMigration implements Container
public function postUp(Schema $schema): void
{
$presta = $this->em->getRepository(Prestataire::class)->getPrestataireSolidoume();
// this up() migration is auto-generated, please modify it to your needs
$account = new AccountPrestataire();
$account
->setBalance(0)
->setCurrency(CurrencyEnum::CURRENCY_EMLC)
;
$presta->addAccount($account);
$this->em->persist($account);
$this->em->persist($presta);
$this->em->flush();
//EXPLANATION FOR CONTENT REMOVAL OF THIS VERSION :
//We have added new attributes in class Prestataire which cause this migration to fail
//Removing the content of this migration should not cause any issue because it does not
//modify the database structure and because data will be purged at the next install step
// $presta = $this->em->getRepository(Prestataire::class)->getPrestataireSolidoume();
// // this up() migration is auto-generated, please modify it to your needs
// $account = new AccountPrestataire();
// $account
// ->setBalance(0)
// ->setCurrency(CurrencyEnum::CURRENCY_EMLC)
// ;
// $presta->addAccount($account);
// $this->em->persist($account);
// $this->em->persist($presta);
// $this->em->flush();
}
public function down(Schema $schema): void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment