Browse Source

transform bundle

develop
Charly 2 years ago
parent
commit
c06f01f0be
32 changed files with 1746 additions and 958 deletions
  1. +5
    -0
      .env
  2. +27
    -25
      composer.json
  3. +1510
    -531
      composer.lock
  4. +1
    -0
      config/bundles.php
  5. +8
    -8
      config/packages/doctrine.yaml
  6. +4
    -0
      config/packages/mailjet.yaml
  7. +9
    -0
      config/packages/twig.yaml
  8. +2
    -0
      config/services.yaml
  9. +0
    -32
      migrations/Version20210914103716.php
  10. +0
    -35
      migrations/Version20210914113711.php
  11. +0
    -31
      migrations/Version20210914114109.php
  12. +0
    -31
      migrations/Version20210923073740.php
  13. +0
    -31
      migrations/Version20210930114405.php
  14. +0
    -97
      migrations/Version20211007131528.php
  15. +0
    -35
      migrations/Version20211007134639.php
  16. +0
    -35
      migrations/Version20211007134730.php
  17. +15
    -27
      migrations/Version20211008103658.php
  18. +69
    -0
      migrations/Version20211008103800.php
  19. +5
    -0
      phpunit.xml.dist
  20. +25
    -25
      public/build/entrypoints.json
  21. +1
    -1
      public/build/manifest.json
  22. +1
    -1
      src/Controller/Admin/IndividualData/IndividualDataAdminController.php
  23. +2
    -2
      src/Entity/Dream.php
  24. +1
    -1
      src/Entity/IndividualData.php
  25. +1
    -1
      src/Entity/ProjectBoost.php
  26. +1
    -1
      src/Entity/ProjectInspiring.php
  27. +1
    -1
      src/Entity/Revolt.php
  28. +1
    -1
      src/Entity/Subthematic.php
  29. +1
    -1
      src/Entity/Territory.php
  30. +1
    -1
      src/Entity/Thematic.php
  31. +51
    -0
      symfony.lock
  32. +4
    -4
      templates/frontend/carto-carte.html.twig

+ 5
- 0
.env View File

@@ -30,3 +30,8 @@ APP_SECRET=555bc2aee588a05641d07ab10b081636
# DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
###< doctrine/doctrine-bundle ###

###> mailjet/mailjet-bundle ###
MAILJET_APIKEY_PUBLIC=your-api_key
MAILJET_APIKEY_PRIVATE=@@your-secret_key
###< mailjet/mailjet-bundle ###

+ 27
- 25
composer.json View File

@@ -22,35 +22,37 @@
"phpdocumentor/reflection-docblock": "^5.2",
"sensio/framework-extra-bundle": "^5.1",
"stof/doctrine-extensions-bundle": "^1.6",
"symfony/asset": "5.2.*",
"symfony/console": "5.2.*",
"symfony/dotenv": "5.2.*",
"symfony/expression-language": "5.2.*",
"symfony/asset": "5.3.*",
"symfony/console": "5.3.*",
"symfony/dotenv": "5.3.*",
"symfony/expression-language": "5.3.*",
"symfony/flex": "^1.3.1",
"symfony/form": "5.2.*",
"symfony/framework-bundle": "5.2.*",
"symfony/http-client": "5.2.*",
"symfony/intl": "5.2.*",
"symfony/mailer": "5.2.*",
"symfony/mime": "5.2.*",
"symfony/form": "5.3.*",
"symfony/framework-bundle": "5.3.*",
"symfony/http-client": "5.3.*",
"symfony/intl": "5.3.*",
"symfony/mailer": "5.3.*",
"symfony/mime": "5.3.*",
"symfony/monolog-bundle": "^3.1",
"symfony/notifier": "5.2.*",
"symfony/process": "5.2.*",
"symfony/property-access": "5.2.*",
"symfony/property-info": "5.2.*",
"symfony/proxy-manager-bridge": "5.2.*",
"symfony/security-bundle": "5.2.*",
"symfony/serializer": "5.2.*",
"symfony/string": "5.2.*",
"symfony/translation": "5.2.*",
"symfony/twig-bundle": "^5.2",
"symfony/validator": "5.2.*",
"symfony/web-link": "5.2.*",
"symfony/notifier": "5.3.*",
"symfony/process": "5.3.*",
"symfony/property-access": "5.3.*",
"symfony/property-info": "5.3.*",
"symfony/proxy-manager-bridge": "5.3.*",
"symfony/security-bundle": "5.3.*",
"symfony/serializer": "5.3.*",
"symfony/string": "5.3.*",
"symfony/translation": "5.3.*",
"symfony/twig-bundle": "^5.3",
"symfony/validator": "5.3.*",
"symfony/web-link": "5.3.*",
"symfony/webpack-encore-bundle": "^1.11",
"symfony/yaml": "5.2.*",
"symfony/yaml": "5.3.*",
"twig/extra-bundle": "^2.12|^3.0",
"twig/twig": "^2.12|^3.0",
"welp/mailchimp-bundle": "^1.3"
"welp/mailchimp-bundle": "^1.3",
"mailjet/mailjet-bundle": "^2.0",
"mailjet/mailjet-swiftmailer": "1.0.6"
},
"require-dev": {
"symfony/browser-kit": "^5.2",
@@ -103,7 +105,7 @@
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.2.*"
"require": "5.3.*"
}
}
}

+ 1510
- 531
composer.lock
File diff suppressed because it is too large
View File


+ 1
- 0
config/bundles.php View File

@@ -23,4 +23,5 @@ return [
Knp\Bundle\PaginatorBundle\KnpPaginatorBundle::class => ['all' => true],
Welp\MailchimpBundle\WelpMailchimpBundle::class => ['all' => true],
ConnectHolland\CookieConsentBundle\CHCookieConsentBundle::class => ['all' => true],
Mailjet\MailjetBundle\MailjetBundle::class => ['all' => true],
];

+ 8
- 8
config/packages/doctrine.yaml View File

@@ -22,11 +22,11 @@ doctrine:
Lc\SovBundle\Model\Setting\SiteSettingInterface: App\Entity\Setting\SiteSetting
Lc\SovBundle\Model\Ticket\TicketInterface: App\Entity\Ticket\Ticket
Lc\SovBundle\Model\Ticket\TicketMessageInterface: App\Entity\Ticket\TicketMessage
Lc\PietroBundle\Model\DreamInterface: App\Entity\Dream
Lc\PietroBundle\Model\IndividualDataInterface: App\Entity\IndividualData
Lc\PietroBundle\Model\ProjectBoostInterface: App\Entity\ProjectBoost
Lc\PietroBundle\Model\ProjectInspiringInterface: App\Entity\ProjectInspiring
Lc\PietroBundle\Model\RevoltInterface: App\Entity\Revolt
Lc\PietroBundle\Model\SubthematicInterface: App\Entity\Subthematic
Lc\PietroBundle\Model\TerritoryInterface: App\Entity\Territory
Lc\PietroBundle\Model\ThematicInterface: App\Entity\Thematic
Lc\PietroBundle\Model\Dream\DreamInterface: App\Entity\Dream
Lc\PietroBundle\Model\IndividualData\IndividualDataInterface: App\Entity\IndividualData
Lc\PietroBundle\Model\ProjectBoost\ProjectBoostInterface: App\Entity\ProjectBoost
Lc\PietroBundle\Model\ProjectInspiring\ProjectInspiringInterface: App\Entity\ProjectInspiring
Lc\PietroBundle\Model\Revolt\RevoltInterface: App\Entity\Revolt
Lc\PietroBundle\Model\Subthematic\SubthematicInterface: App\Entity\Subthematic
Lc\PietroBundle\Model\Territory\TerritoryInterface: App\Entity\Territory
Lc\PietroBundle\Model\Thematic\ThematicInterface: App\Entity\Thematic

+ 4
- 0
config/packages/mailjet.yaml View File

@@ -0,0 +1,4 @@
mailjet:
api_key: "%env(MAILJET_APIKEY_PUBLIC)%"
secret_key: "%env(MAILJET_APIKEY_PRIVATE)%"


+ 9
- 0
config/packages/twig.yaml View File

@@ -1,2 +1,11 @@
twig:
default_path: '%kernel.project_dir%/templates'
globals:
# container piedro
dream_container: '@Lc\PietroBundle\Container\Dream\DreamContainer'
individual_data_container: '@Lc\PietroBundle\Container\IndividualData\IndividualDataContainer'
project_boost_container: '@Lc\PietroBundle\Container\ProjectBoost\ProjectBoostContainer'
project_inspiring_container: '@Lc\PietroBundle\Container\ProjectInspiring\ProjectInspiringContainer'
revolt_container: '@Lc\PietroBundle\Container\Revolt\RevoltContainer'
territory_container: '@Lc\PietroBundle\Container\Territory\TerritoryContainer'
thematic_container: '@Lc\PietroBundle\Container\Thematic\ThematicContainer'

+ 2
- 0
config/services.yaml View File

@@ -33,6 +33,8 @@ services:
resource: '../src/Controller/'
tags: ['controller.service_arguments']

Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport: '@swiftmailer.mailer.transport.mailjet'

app.form.extension.type.cookie_consent:
class: App\Form\CookieConsentTypeExtension
tags:

+ 0
- 32
migrations/Version20210914103716.php View File

@@ -1,32 +0,0 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210914103716 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE block (id INT AUTO_INCREMENT NOT NULL, page_id INT DEFAULT NULL, dev_alias VARCHAR(255) NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, INDEX IDX_831B9722C4663E4 (page_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE block ADD CONSTRAINT FK_831B9722C4663E4 FOREIGN KEY (page_id) REFERENCES page (id)');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE block');
}
}

+ 0
- 35
migrations/Version20210914113711.php View File

@@ -1,35 +0,0 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210914113711 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE block DROP FOREIGN KEY FK_831B9722C4663E4');
$this->addSql('DROP INDEX IDX_831B9722C4663E4 ON block');
$this->addSql('ALTER TABLE block DROP page_id');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE block ADD page_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE block ADD CONSTRAINT FK_831B9722C4663E4 FOREIGN KEY (page_id) REFERENCES page (id)');
$this->addSql('CREATE INDEX IDX_831B9722C4663E4 ON block (page_id)');
}
}

+ 0
- 31
migrations/Version20210914114109.php View File

@@ -1,31 +0,0 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210914114109 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE block ADD status DOUBLE PRECISION NOT NULL');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE block DROP status');
}
}

+ 0
- 31
migrations/Version20210923073740.php View File

@@ -1,31 +0,0 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210923073740 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE ch_cookieconsent_log (id INT AUTO_INCREMENT NOT NULL, ip_address VARCHAR(255) NOT NULL, cookie_consent_key VARCHAR(255) NOT NULL, cookie_name VARCHAR(255) NOT NULL, cookie_value VARCHAR(255) NOT NULL, timestamp DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE ch_cookieconsent_log');
}
}

+ 0
- 31
migrations/Version20210930114405.php View File

@@ -1,31 +0,0 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210930114405 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE collectif_data ADD name VARCHAR(255) DEFAULT NULL');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE collectif_data DROP name');
}
}

+ 0
- 97
migrations/Version20211007131528.php View File

@@ -1,97 +0,0 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20211007131528 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE dream DROP FOREIGN KEY FK_6A5F004F2395FCED');
$this->addSql('ALTER TABLE dream DROP FOREIGN KEY FK_6A5F004F6C159F58');
$this->addSql('ALTER TABLE dream DROP FOREIGN KEY FK_6A5F004FE2920B1');
$this->addSql('DROP INDEX IDX_6A5F004F6C159F58 ON dream');
$this->addSql('DROP INDEX IDX_6A5F004FE2920B1 ON dream');
$this->addSql('DROP INDEX IDX_6A5F004F2395FCED ON dream');
$this->addSql('ALTER TABLE dream DROP individual_data_id, DROP thematic_id, DROP subthematic_id, DROP description');
$this->addSql('ALTER TABLE individual_data DROP firstname, DROP lastname, DROP email, DROP intro_question, DROP intro_answer');
$this->addSql('ALTER TABLE project_boost DROP FOREIGN KEY FK_45312EF62395FCED');
$this->addSql('ALTER TABLE project_boost DROP FOREIGN KEY FK_45312EF66C159F58');
$this->addSql('ALTER TABLE project_boost DROP FOREIGN KEY FK_45312EF6E2920B1');
$this->addSql('DROP INDEX IDX_45312EF66C159F58 ON project_boost');
$this->addSql('DROP INDEX IDX_45312EF6E2920B1 ON project_boost');
$this->addSql('DROP INDEX IDX_45312EF62395FCED ON project_boost');
$this->addSql('ALTER TABLE project_boost DROP individual_data_id, DROP thematic_id, DROP subthematic_id, DROP description');
$this->addSql('ALTER TABLE project_inspiring DROP FOREIGN KEY FK_2E8C2C2E2395FCED');
$this->addSql('ALTER TABLE project_inspiring DROP FOREIGN KEY FK_2E8C2C2E6C159F58');
$this->addSql('ALTER TABLE project_inspiring DROP FOREIGN KEY FK_2E8C2C2EE2920B1');
$this->addSql('DROP INDEX IDX_2E8C2C2E6C159F58 ON project_inspiring');
$this->addSql('DROP INDEX IDX_2E8C2C2EE2920B1 ON project_inspiring');
$this->addSql('DROP INDEX IDX_2E8C2C2E2395FCED ON project_inspiring');
$this->addSql('ALTER TABLE project_inspiring DROP individual_data_id, DROP thematic_id, DROP subthematic_id, DROP description');
$this->addSql('ALTER TABLE revolt DROP FOREIGN KEY FK_350517872395FCED');
$this->addSql('ALTER TABLE revolt DROP FOREIGN KEY FK_350517876C159F58');
$this->addSql('ALTER TABLE revolt DROP FOREIGN KEY FK_35051787E2920B1');
$this->addSql('DROP INDEX IDX_350517876C159F58 ON revolt');
$this->addSql('DROP INDEX IDX_35051787E2920B1 ON revolt');
$this->addSql('DROP INDEX IDX_350517872395FCED ON revolt');
$this->addSql('ALTER TABLE revolt DROP individual_data_id, DROP thematic_id, DROP subthematic_id, DROP description');
$this->addSql('ALTER TABLE subthematic DROP FOREIGN KEY FK_778C62FB2395FCED');
$this->addSql('DROP INDEX IDX_778C62FB2395FCED ON subthematic');
$this->addSql('ALTER TABLE subthematic DROP thematic_id, DROP name');
$this->addSql('ALTER TABLE territory DROP name');
$this->addSql('ALTER TABLE thematic DROP name');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE dream ADD individual_data_id INT DEFAULT NULL, ADD thematic_id INT DEFAULT NULL, ADD subthematic_id INT DEFAULT NULL, ADD description LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004F2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004F6C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004FE2920B1 FOREIGN KEY (individual_data_id) REFERENCES individual_data (id)');
$this->addSql('CREATE INDEX IDX_6A5F004F6C159F58 ON dream (subthematic_id)');
$this->addSql('CREATE INDEX IDX_6A5F004FE2920B1 ON dream (individual_data_id)');
$this->addSql('CREATE INDEX IDX_6A5F004F2395FCED ON dream (thematic_id)');
$this->addSql('ALTER TABLE individual_data ADD firstname VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, ADD lastname VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, ADD email VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, ADD intro_question VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, ADD intro_answer VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE project_boost ADD individual_data_id INT DEFAULT NULL, ADD thematic_id INT DEFAULT NULL, ADD subthematic_id INT DEFAULT NULL, ADD description LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF62395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF66C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
$this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF6E2920B1 FOREIGN KEY (individual_data_id) REFERENCES individual_data (id)');
$this->addSql('CREATE INDEX IDX_45312EF66C159F58 ON project_boost (subthematic_id)');
$this->addSql('CREATE INDEX IDX_45312EF6E2920B1 ON project_boost (individual_data_id)');
$this->addSql('CREATE INDEX IDX_45312EF62395FCED ON project_boost (thematic_id)');
$this->addSql('ALTER TABLE project_inspiring ADD individual_data_id INT DEFAULT NULL, ADD thematic_id INT DEFAULT NULL, ADD subthematic_id INT DEFAULT NULL, ADD description LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2E2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2E6C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
$this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2EE2920B1 FOREIGN KEY (individual_data_id) REFERENCES individual_data (id)');
$this->addSql('CREATE INDEX IDX_2E8C2C2E6C159F58 ON project_inspiring (subthematic_id)');
$this->addSql('CREATE INDEX IDX_2E8C2C2EE2920B1 ON project_inspiring (individual_data_id)');
$this->addSql('CREATE INDEX IDX_2E8C2C2E2395FCED ON project_inspiring (thematic_id)');
$this->addSql('ALTER TABLE revolt ADD individual_data_id INT DEFAULT NULL, ADD thematic_id INT DEFAULT NULL, ADD subthematic_id INT DEFAULT NULL, ADD description LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_350517872395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_350517876C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
$this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_35051787E2920B1 FOREIGN KEY (individual_data_id) REFERENCES individual_data (id)');
$this->addSql('CREATE INDEX IDX_350517876C159F58 ON revolt (subthematic_id)');
$this->addSql('CREATE INDEX IDX_35051787E2920B1 ON revolt (individual_data_id)');
$this->addSql('CREATE INDEX IDX_350517872395FCED ON revolt (thematic_id)');
$this->addSql('ALTER TABLE subthematic ADD thematic_id INT DEFAULT NULL, ADD name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE subthematic ADD CONSTRAINT FK_778C62FB2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('CREATE INDEX IDX_778C62FB2395FCED ON subthematic (thematic_id)');
$this->addSql('ALTER TABLE territory ADD name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE thematic ADD name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
}
}

+ 0
- 35
migrations/Version20211007134639.php View File

@@ -1,35 +0,0 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20211007134639 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE dream DROP FOREIGN KEY FK_6A5F004FD9275BF1');
$this->addSql('DROP INDEX IDX_6A5F004FD9275BF1 ON dream');
$this->addSql('ALTER TABLE dream DROP collectif_data_id');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE dream ADD collectif_data_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004FD9275BF1 FOREIGN KEY (collectif_data_id) REFERENCES collectif_data (id)');
$this->addSql('CREATE INDEX IDX_6A5F004FD9275BF1 ON dream (collectif_data_id)');
}
}

+ 0
- 35
migrations/Version20211007134730.php View File

@@ -1,35 +0,0 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20211007134730 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE dream ADD collectif_data_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004FD9275BF1 FOREIGN KEY (collectif_data_id) REFERENCES collectif_data (id)');
$this->addSql('CREATE INDEX IDX_6A5F004FD9275BF1 ON dream (collectif_data_id)');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE dream DROP FOREIGN KEY FK_6A5F004FD9275BF1');
$this->addSql('DROP INDEX IDX_6A5F004FD9275BF1 ON dream');
$this->addSql('ALTER TABLE dream DROP collectif_data_id');
}
}

migrations/Version20210906144104.php → migrations/Version20211008103658.php View File

@@ -10,7 +10,7 @@ use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210906144104 extends AbstractMigration
final class Version20211008103658 extends AbstractMigration
{
public function getDescription(): string
{
@@ -20,19 +20,21 @@ final class Version20210906144104 extends AbstractMigration
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE collectif_data (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, territory_id INT DEFAULT NULL, nb_participant INT NOT NULL, status DOUBLE PRECISION NOT NULL, INDEX IDX_F35F8503A76ED395 (user_id), INDEX IDX_F35F850373F74AD4 (territory_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE block (id INT AUTO_INCREMENT NOT NULL, dev_alias VARCHAR(255) NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, status DOUBLE PRECISION NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE ch_cookieconsent_log (id INT AUTO_INCREMENT NOT NULL, ip_address VARCHAR(255) NOT NULL, cookie_consent_key VARCHAR(255) NOT NULL, cookie_name VARCHAR(255) NOT NULL, cookie_value VARCHAR(255) NOT NULL, timestamp DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE collectif_data (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, territory_id INT DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, nb_participant INT NOT NULL, status DOUBLE PRECISION NOT NULL, INDEX IDX_F35F8503A76ED395 (user_id), INDEX IDX_F35F850373F74AD4 (territory_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE configuration (id INT AUTO_INCREMENT NOT NULL, value VARCHAR(255) NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dream (id INT AUTO_INCREMENT NOT NULL, individual_data_id INT DEFAULT NULL, collectif_data_id INT DEFAULT NULL, thematic_id INT DEFAULT NULL, subthematic_id INT DEFAULT NULL, description LONGTEXT NOT NULL, INDEX IDX_6A5F004FE2920B1 (individual_data_id), INDEX IDX_6A5F004FD9275BF1 (collectif_data_id), INDEX IDX_6A5F004F2395FCED (thematic_id), INDEX IDX_6A5F004F6C159F58 (subthematic_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dream (id INT AUTO_INCREMENT NOT NULL, collectif_data_id INT DEFAULT NULL, individual_data_id INT DEFAULT NULL, INDEX IDX_6A5F004FD9275BF1 (collectif_data_id), INDEX IDX_6A5F004FE2920B1 (individual_data_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE file (id INT AUTO_INCREMENT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, path VARCHAR(255) DEFAULT NULL, legend VARCHAR(255) DEFAULT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, locales_enabled LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', position DOUBLE PRECISION NOT NULL, INDEX IDX_8C9F3610B03A8386 (created_by_id), INDEX IDX_8C9F3610896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE group_user (id INT AUTO_INCREMENT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_A4C98D39B03A8386 (created_by_id), INDEX IDX_A4C98D39896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE individual_data (id INT AUTO_INCREMENT NOT NULL, territory_id INT DEFAULT NULL, firstname VARCHAR(255) DEFAULT NULL, lastname VARCHAR(255) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, intro_question VARCHAR(255) DEFAULT NULL, intro_answer VARCHAR(255) DEFAULT NULL, status DOUBLE PRECISION NOT NULL, INDEX IDX_653169D073F74AD4 (territory_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE page (id INT AUTO_INCREMENT NOT NULL, image_id INT DEFAULT NULL, file_id INT DEFAULT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, INDEX IDX_140AB6203DA5256D (image_id), INDEX IDX_140AB62093CB796C (file_id), INDEX IDX_140AB620B03A8386 (created_by_id), INDEX IDX_140AB620896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE page_file (page_id INT NOT NULL, file_id INT NOT NULL, INDEX IDX_B5B2ACAC4663E4 (page_id), INDEX IDX_B5B2ACA93CB796C (file_id), PRIMARY KEY(page_id, file_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE project_boost (id INT AUTO_INCREMENT NOT NULL, individual_data_id INT DEFAULT NULL, collectif_data_id INT DEFAULT NULL, thematic_id INT DEFAULT NULL, subthematic_id INT DEFAULT NULL, description LONGTEXT NOT NULL, INDEX IDX_45312EF6E2920B1 (individual_data_id), INDEX IDX_45312EF6D9275BF1 (collectif_data_id), INDEX IDX_45312EF62395FCED (thematic_id), INDEX IDX_45312EF66C159F58 (subthematic_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE project_inspiring (id INT AUTO_INCREMENT NOT NULL, individual_data_id INT DEFAULT NULL, collectif_data_id INT DEFAULT NULL, thematic_id INT DEFAULT NULL, subthematic_id INT DEFAULT NULL, description LONGTEXT NOT NULL, INDEX IDX_2E8C2C2EE2920B1 (individual_data_id), INDEX IDX_2E8C2C2ED9275BF1 (collectif_data_id), INDEX IDX_2E8C2C2E2395FCED (thematic_id), INDEX IDX_2E8C2C2E6C159F58 (subthematic_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE project_boost (id INT AUTO_INCREMENT NOT NULL, collectif_data_id INT DEFAULT NULL, individual_data_id INT DEFAULT NULL, INDEX IDX_45312EF6D9275BF1 (collectif_data_id), INDEX IDX_45312EF6E2920B1 (individual_data_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE project_inspiring (id INT AUTO_INCREMENT NOT NULL, collectif_data_id INT DEFAULT NULL, individual_data_id INT DEFAULT NULL, INDEX IDX_2E8C2C2ED9275BF1 (collectif_data_id), INDEX IDX_2E8C2C2EE2920B1 (individual_data_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE reminder (id INT AUTO_INCREMENT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, crud_action VARCHAR(64) DEFAULT NULL, crud_controller_fqcn VARCHAR(255) DEFAULT NULL, entity_id INT DEFAULT NULL, date_reminder DATE DEFAULT NULL, done TINYINT(1) NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_40374F40B03A8386 (created_by_id), INDEX IDX_40374F40896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE reminder_user_interface (reminder_id INT NOT NULL, user_interface_id INT NOT NULL, INDEX IDX_7FD2584BD987BE75 (reminder_id), INDEX IDX_7FD2584B2BC79580 (user_interface_id), PRIMARY KEY(reminder_id, user_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE revolt (id INT AUTO_INCREMENT NOT NULL, individual_data_id INT DEFAULT NULL, collectif_data_id INT DEFAULT NULL, thematic_id INT DEFAULT NULL, subthematic_id INT DEFAULT NULL, description LONGTEXT NOT NULL, INDEX IDX_35051787E2920B1 (individual_data_id), INDEX IDX_35051787D9275BF1 (collectif_data_id), INDEX IDX_350517872395FCED (thematic_id), INDEX IDX_350517876C159F58 (subthematic_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE revolt (id INT AUTO_INCREMENT NOT NULL, collectif_data_id INT DEFAULT NULL, individual_data_id INT DEFAULT NULL, INDEX IDX_35051787D9275BF1 (collectif_data_id), INDEX IDX_35051787E2920B1 (individual_data_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE site (id INT AUTO_INCREMENT NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE site_setting (id INT AUTO_INCREMENT NOT NULL, site_id INT NOT NULL, file_id INT DEFAULT NULL, name VARCHAR(63) NOT NULL, text LONGTEXT DEFAULT NULL, date DATETIME DEFAULT NULL, INDEX IDX_64D05A53F6BD1646 (site_id), INDEX IDX_64D05A5393CB796C (file_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE subthematic (id INT AUTO_INCREMENT NOT NULL, thematic_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, INDEX IDX_778C62FB2395FCED (thematic_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
@@ -40,14 +42,12 @@ final class Version20210906144104 extends AbstractMigration
$this->addSql('CREATE TABLE thematic (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE ticket (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, type VARCHAR(32) NOT NULL, status VARCHAR(32) NOT NULL, subject VARCHAR(255) NOT NULL, tags LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', visitor_firstname VARCHAR(64) DEFAULT NULL, visitor_lastname VARCHAR(64) DEFAULT NULL, visitor_email VARCHAR(128) DEFAULT NULL, visitor_token VARCHAR(255) DEFAULT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_97A0ADA3A76ED395 (user_id), INDEX IDX_97A0ADA3B03A8386 (created_by_id), INDEX IDX_97A0ADA3896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE ticket_message (id INT AUTO_INCREMENT NOT NULL, ticket_id INT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, message LONGTEXT NOT NULL, answer_by_admin TINYINT(1) DEFAULT NULL, image_filename VARCHAR(255) DEFAULT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, status DOUBLE PRECISION NOT NULL, INDEX IDX_BA71692D700047D2 (ticket_id), INDEX IDX_BA71692DB03A8386 (created_by_id), INDEX IDX_BA71692D896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(180) NOT NULL, roles LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', password VARCHAR(255) NOT NULL, lastname VARCHAR(255) DEFAULT NULL, firstname VARCHAR(255) DEFAULT NULL, phone VARCHAR(20) DEFAULT NULL, gender TINYINT(1) DEFAULT NULL, birthdate DATE DEFAULT NULL, is_verified TINYINT(1) NOT NULL, ticket_types_notification LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', dev_alias VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(180) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, lastname VARCHAR(255) DEFAULT NULL, firstname VARCHAR(255) DEFAULT NULL, phone VARCHAR(20) DEFAULT NULL, gender TINYINT(1) DEFAULT NULL, birthdate DATE DEFAULT NULL, is_verified TINYINT(1) NOT NULL, ticket_types_notification LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', dev_alias VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user_group_user_interface (user_id INT NOT NULL, group_user_interface_id INT NOT NULL, INDEX IDX_12B87B34A76ED395 (user_id), INDEX IDX_12B87B34F583BABC (group_user_interface_id), PRIMARY KEY(user_id, group_user_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE collectif_data ADD CONSTRAINT FK_F35F8503A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE collectif_data ADD CONSTRAINT FK_F35F850373F74AD4 FOREIGN KEY (territory_id) REFERENCES territory (id)');
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004FE2920B1 FOREIGN KEY (individual_data_id) REFERENCES individual_data (id)');
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004FD9275BF1 FOREIGN KEY (collectif_data_id) REFERENCES collectif_data (id)');
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004F2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004F6C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004FE2920B1 FOREIGN KEY (individual_data_id) REFERENCES individual_data (id)');
$this->addSql('ALTER TABLE file ADD CONSTRAINT FK_8C9F3610B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE file ADD CONSTRAINT FK_8C9F3610896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE group_user ADD CONSTRAINT FK_A4C98D39B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
@@ -59,22 +59,16 @@ final class Version20210906144104 extends AbstractMigration
$this->addSql('ALTER TABLE page ADD CONSTRAINT FK_140AB620896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE page_file ADD CONSTRAINT FK_B5B2ACAC4663E4 FOREIGN KEY (page_id) REFERENCES page (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE page_file ADD CONSTRAINT FK_B5B2ACA93CB796C FOREIGN KEY (file_id) REFERENCES file (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF6E2920B1 FOREIGN KEY (individual_data_id) REFERENCES individual_data (id)');
$this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF6D9275BF1 FOREIGN KEY (collectif_data_id) REFERENCES collectif_data (id)');
$this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF62395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF66C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
$this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2EE2920B1 FOREIGN KEY (individual_data_id) REFERENCES individual_data (id)');
$this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF6E2920B1 FOREIGN KEY (individual_data_id) REFERENCES individual_data (id)');
$this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2ED9275BF1 FOREIGN KEY (collectif_data_id) REFERENCES collectif_data (id)');
$this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2E2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2E6C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
$this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2EE2920B1 FOREIGN KEY (individual_data_id) REFERENCES individual_data (id)');
$this->addSql('ALTER TABLE reminder ADD CONSTRAINT FK_40374F40B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE reminder ADD CONSTRAINT FK_40374F40896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE reminder_user_interface ADD CONSTRAINT FK_7FD2584BD987BE75 FOREIGN KEY (reminder_id) REFERENCES reminder (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE reminder_user_interface ADD CONSTRAINT FK_7FD2584B2BC79580 FOREIGN KEY (user_interface_id) REFERENCES user (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_35051787E2920B1 FOREIGN KEY (individual_data_id) REFERENCES individual_data (id)');
$this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_35051787D9275BF1 FOREIGN KEY (collectif_data_id) REFERENCES collectif_data (id)');
$this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_350517872395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_350517876C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
$this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_35051787E2920B1 FOREIGN KEY (individual_data_id) REFERENCES individual_data (id)');
$this->addSql('ALTER TABLE site_setting ADD CONSTRAINT FK_64D05A53F6BD1646 FOREIGN KEY (site_id) REFERENCES site (id)');
$this->addSql('ALTER TABLE site_setting ADD CONSTRAINT FK_64D05A5393CB796C FOREIGN KEY (file_id) REFERENCES file (id)');
$this->addSql('ALTER TABLE subthematic ADD CONSTRAINT FK_778C62FB2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
@@ -107,16 +101,8 @@ final class Version20210906144104 extends AbstractMigration
$this->addSql('ALTER TABLE page_file DROP FOREIGN KEY FK_B5B2ACAC4663E4');
$this->addSql('ALTER TABLE reminder_user_interface DROP FOREIGN KEY FK_7FD2584BD987BE75');
$this->addSql('ALTER TABLE site_setting DROP FOREIGN KEY FK_64D05A53F6BD1646');
$this->addSql('ALTER TABLE dream DROP FOREIGN KEY FK_6A5F004F6C159F58');
$this->addSql('ALTER TABLE project_boost DROP FOREIGN KEY FK_45312EF66C159F58');
$this->addSql('ALTER TABLE project_inspiring DROP FOREIGN KEY FK_2E8C2C2E6C159F58');
$this->addSql('ALTER TABLE revolt DROP FOREIGN KEY FK_350517876C159F58');
$this->addSql('ALTER TABLE collectif_data DROP FOREIGN KEY FK_F35F850373F74AD4');
$this->addSql('ALTER TABLE individual_data DROP FOREIGN KEY FK_653169D073F74AD4');
$this->addSql('ALTER TABLE dream DROP FOREIGN KEY FK_6A5F004F2395FCED');
$this->addSql('ALTER TABLE project_boost DROP FOREIGN KEY FK_45312EF62395FCED');
$this->addSql('ALTER TABLE project_inspiring DROP FOREIGN KEY FK_2E8C2C2E2395FCED');
$this->addSql('ALTER TABLE revolt DROP FOREIGN KEY FK_350517872395FCED');
$this->addSql('ALTER TABLE subthematic DROP FOREIGN KEY FK_778C62FB2395FCED');
$this->addSql('ALTER TABLE ticket_message DROP FOREIGN KEY FK_BA71692D700047D2');
$this->addSql('ALTER TABLE collectif_data DROP FOREIGN KEY FK_F35F8503A76ED395');
@@ -135,6 +121,8 @@ final class Version20210906144104 extends AbstractMigration
$this->addSql('ALTER TABLE ticket_message DROP FOREIGN KEY FK_BA71692DB03A8386');
$this->addSql('ALTER TABLE ticket_message DROP FOREIGN KEY FK_BA71692D896DBBDE');
$this->addSql('ALTER TABLE user_group_user_interface DROP FOREIGN KEY FK_12B87B34A76ED395');
$this->addSql('DROP TABLE block');
$this->addSql('DROP TABLE ch_cookieconsent_log');
$this->addSql('DROP TABLE collectif_data');
$this->addSql('DROP TABLE configuration');
$this->addSql('DROP TABLE dream');

+ 69
- 0
migrations/Version20211008103800.php View File

@@ -0,0 +1,69 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20211008103800 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE dream ADD thematic_id INT DEFAULT NULL, ADD subthematic_id INT DEFAULT NULL, ADD description LONGTEXT NOT NULL');
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004F2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004F6C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
$this->addSql('CREATE INDEX IDX_6A5F004F2395FCED ON dream (thematic_id)');
$this->addSql('CREATE INDEX IDX_6A5F004F6C159F58 ON dream (subthematic_id)');
$this->addSql('ALTER TABLE project_boost ADD thematic_id INT DEFAULT NULL, ADD subthematic_id INT DEFAULT NULL, ADD description LONGTEXT NOT NULL');
$this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF62395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF66C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
$this->addSql('CREATE INDEX IDX_45312EF62395FCED ON project_boost (thematic_id)');
$this->addSql('CREATE INDEX IDX_45312EF66C159F58 ON project_boost (subthematic_id)');
$this->addSql('ALTER TABLE project_inspiring ADD thematic_id INT DEFAULT NULL, ADD subthematic_id INT DEFAULT NULL, ADD description LONGTEXT NOT NULL');
$this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2E2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2E6C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
$this->addSql('CREATE INDEX IDX_2E8C2C2E2395FCED ON project_inspiring (thematic_id)');
$this->addSql('CREATE INDEX IDX_2E8C2C2E6C159F58 ON project_inspiring (subthematic_id)');
$this->addSql('ALTER TABLE revolt ADD thematic_id INT DEFAULT NULL, ADD subthematic_id INT DEFAULT NULL, ADD description LONGTEXT NOT NULL');
$this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_350517872395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_350517876C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
$this->addSql('CREATE INDEX IDX_350517872395FCED ON revolt (thematic_id)');
$this->addSql('CREATE INDEX IDX_350517876C159F58 ON revolt (subthematic_id)');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE dream DROP FOREIGN KEY FK_6A5F004F2395FCED');
$this->addSql('ALTER TABLE dream DROP FOREIGN KEY FK_6A5F004F6C159F58');
$this->addSql('DROP INDEX IDX_6A5F004F2395FCED ON dream');
$this->addSql('DROP INDEX IDX_6A5F004F6C159F58 ON dream');
$this->addSql('ALTER TABLE dream DROP thematic_id, DROP subthematic_id, DROP description');
$this->addSql('ALTER TABLE project_boost DROP FOREIGN KEY FK_45312EF62395FCED');
$this->addSql('ALTER TABLE project_boost DROP FOREIGN KEY FK_45312EF66C159F58');
$this->addSql('DROP INDEX IDX_45312EF62395FCED ON project_boost');
$this->addSql('DROP INDEX IDX_45312EF66C159F58 ON project_boost');
$this->addSql('ALTER TABLE project_boost DROP thematic_id, DROP subthematic_id, DROP description');
$this->addSql('ALTER TABLE project_inspiring DROP FOREIGN KEY FK_2E8C2C2E2395FCED');
$this->addSql('ALTER TABLE project_inspiring DROP FOREIGN KEY FK_2E8C2C2E6C159F58');
$this->addSql('DROP INDEX IDX_2E8C2C2E2395FCED ON project_inspiring');
$this->addSql('DROP INDEX IDX_2E8C2C2E6C159F58 ON project_inspiring');
$this->addSql('ALTER TABLE project_inspiring DROP thematic_id, DROP subthematic_id, DROP description');
$this->addSql('ALTER TABLE revolt DROP FOREIGN KEY FK_350517872395FCED');
$this->addSql('ALTER TABLE revolt DROP FOREIGN KEY FK_350517876C159F58');
$this->addSql('DROP INDEX IDX_350517872395FCED ON revolt');
$this->addSql('DROP INDEX IDX_350517876C159F58 ON revolt');
$this->addSql('ALTER TABLE revolt DROP thematic_id, DROP subthematic_id, DROP description');
}
}

+ 5
- 0
phpunit.xml.dist View File

@@ -13,6 +13,11 @@
<server name="SHELL_VERBOSITY" value="-1" />
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
<server name="SYMFONY_PHPUNIT_VERSION" value="8.5" />

<!-- ###+ mailjet/mailjet-bundle ### -->
<env name="MAILJET_APIKEY_PUBLIC" value="your-api_key"/>
<env name="MAILJET_APIKEY_PRIVATE" value="@@your-secret_key"/>
<!-- ###- mailjet/mailjet-bundle ### -->
</php>

<testsuites>

+ 25
- 25
public/build/entrypoints.json View File

@@ -1,34 +1,33 @@
{
"entrypoints": {
"adminlte-plugins": {
"adminlte-main": {
"js": [
"/build/runtime.ef68e0db.js",
"/build/runtime.6517c718.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_core-js_modules_es_str-0c9418.b5fc4c19.js",
"/build/vendors-node_modules_core-js_modules_es_string_split_js-node_modules_popper_js_dist_esm_popper_js.22d0763b.js",
"/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.7a48c88c.js",
"/build/adminlte-plugins.058f2e02.js"
"/build/adminlte-main.54e70d9c.js"
],
"css": [
"/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.fa890b12.css"
"/build/adminlte-main.87244ec8.css"
]
},
"adminlte-index": {
"adminlte-plugins": {
"js": [
"/build/runtime.ef68e0db.js",
"/build/runtime.6517c718.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/build/vendors-node_modules_core-js_internals_add-to-unscopables_js-node_modules_core-js_modules_es_-e14c1c.756bb6b8.js",
"/build/adminlte-index.b393b588.js"
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_core-js_modules_es_str-0c9418.b5fc4c19.js",
"/build/vendors-node_modules_core-js_modules_es_string_split_js-node_modules_popper_js_dist_esm_popper_js.22d0763b.js",
"/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.7a48c88c.js",
"/build/adminlte-plugins.058f2e02.js"
],
"css": [
"/build/adminlte-index.e4548695.css"
"/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.fa890b12.css"
]
},
"adminlte-form": {
"js": [
"/build/runtime.ef68e0db.js",
"/build/runtime.6517c718.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_modules_es_array_find_js-_7db01.8e56d6b5.js",
"/build/adminlte-form.52acb20e.js"
@@ -39,7 +38,7 @@
},
"adminlte-sort": {
"js": [
"/build/runtime.ef68e0db.js",
"/build/runtime.6517c718.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_core-js_modules_es_str-0c9418.b5fc4c19.js",
@@ -52,7 +51,7 @@
},
"adminlte-field-filemanager": {
"js": [
"/build/runtime.ef68e0db.js",
"/build/runtime.6517c718.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/adminlte-field-filemanager.5b4b01b5.js"
],
@@ -62,7 +61,7 @@
},
"adminlte-field-collection": {
"js": [
"/build/runtime.ef68e0db.js",
"/build/runtime.6517c718.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_core-js_modules_es_str-0c9418.b5fc4c19.js",
@@ -73,20 +72,21 @@
"/build/adminlte-field-collection.55dda2c2.css"
]
},
"adminlte-main": {
"adminlte-index": {
"js": [
"/build/runtime.ef68e0db.js",
"/build/runtime.6517c718.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/build/adminlte-main.54e70d9c.js"
"/build/vendors-node_modules_core-js_internals_add-to-unscopables_js-node_modules_core-js_modules_es_-e14c1c.756bb6b8.js",
"/build/adminlte-index.b393b588.js"
],
"css": [
"/build/adminlte-main.87244ec8.css"
"/build/adminlte-index.e4548695.css"
]
},
"sov-reminder": {
"js": [
"/build/runtime.ef68e0db.js",
"/build/runtime.6517c718.js",
"/build/sov-reminder.27580486.js"
],
"css": [
@@ -95,13 +95,13 @@
},
"sov-ticket": {
"js": [
"/build/runtime.ef68e0db.js",
"/build/runtime.6517c718.js",
"/build/sov-ticket.df76c7a0.js"
]
},
"app-backend": {
"js": [
"/build/runtime.ef68e0db.js",
"/build/runtime.6517c718.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_modules_es_array_find_js-_7db00.020ca672.js",
"/build/app-backend.e87ef456.js"
@@ -112,7 +112,7 @@
},
"app-frontend": {
"js": [
"/build/runtime.ef68e0db.js",
"/build/runtime.6517c718.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_core-js_modules_es_str-0c9418.b5fc4c19.js",
@@ -126,7 +126,7 @@
},
"app-bulle": {
"js": [
"/build/runtime.ef68e0db.js",
"/build/runtime.6517c718.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/build/vendors-node_modules_amcharts_amcharts4_charts_js-node_modules_amcharts_amcharts4_core_js-nod-680fc8.d2df4450.js",

+ 1
- 1
public/build/manifest.json View File

@@ -20,7 +20,7 @@
"build/app-frontend.css": "/build/app-frontend.2ddca656.css",
"build/app-frontend.js": "/build/app-frontend.1e3b4ae2.js",
"build/app-bulle.js": "/build/app-bulle.d8331347.js",
"build/runtime.js": "/build/runtime.ef68e0db.js",
"build/runtime.js": "/build/runtime.6517c718.js",
"build/pdfmake.js": "/build/pdfmake.fbf70324.js",
"build/canvg.js": "/build/canvg.881f9fc1.js",
"build/xlsx.js": "/build/xlsx.05855660.js",

+ 1
- 1
src/Controller/Admin/IndividualData/IndividualDataAdminController.php View File

@@ -2,7 +2,7 @@

namespace App\Controller\Admin\IndividualData;

use Lc\PietroBundle\Model\IndividualData;
use Lc\PietroBundle\Model\IndividualData\IndividualData;
use Lc\PietroBundle\Controller\IndividualData\IndividualDataAdminController as PietroIndividualDataAdminController;

class IndividualDataAdminController extends PietroIndividualDataAdminController

+ 2
- 2
src/Entity/Dream.php View File

@@ -4,12 +4,12 @@ namespace App\Entity;

use Lc\PietroBundle\Repository\Dream\DreamRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\PietroBundle\Model\DreamModel;
use Lc\PietroBundle\Model\Dream\Dream as PietroDream;

/**
* @ORM\Entity(repositoryClass=DreamRepository::class)
*/
class Dream extends DreamModel
class Dream extends PietroDream
{

/**

+ 1
- 1
src/Entity/IndividualData.php View File

@@ -4,7 +4,7 @@ namespace App\Entity;

use Lc\PietroBundle\Repository\IndividualData\IndividualDataRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\PietroBundle\Model\IndividualData as PietroIndividualData;
use Lc\PietroBundle\Model\IndividualData\IndividualData as PietroIndividualData;

/**
* @ORM\Entity(repositoryClass=IndividualDataRepository::class)

+ 1
- 1
src/Entity/ProjectBoost.php View File

@@ -4,7 +4,7 @@ namespace App\Entity;

use Lc\PietroBundle\Repository\ProjectBoost\ProjectBoostRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\PietroBundle\Model\ProjectBoost as PietroProjectBoost;
use Lc\PietroBundle\Model\ProjectBoost\ProjectBoost as PietroProjectBoost;

/**
* @ORM\Entity(repositoryClass=ProjectBoostRepository::class)

+ 1
- 1
src/Entity/ProjectInspiring.php View File

@@ -4,7 +4,7 @@ namespace App\Entity;

use Lc\PietroBundle\Repository\ProjectInspiring\ProjectInspiringRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\PietroBundle\Model\ProjectInspiring as PietroProjectInspiring;
use Lc\PietroBundle\Model\ProjectInspiring\ProjectInspiring as PietroProjectInspiring;

/**
* @ORM\Entity(repositoryClass=ProjectInspiringRepository::class)

+ 1
- 1
src/Entity/Revolt.php View File

@@ -4,7 +4,7 @@ namespace App\Entity;

use Lc\PietroBundle\Repository\Revolt\RevoltRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\PietroBundle\Model\Revolt as PietroRevolt;
use Lc\PietroBundle\Model\Revolt\Revolt as PietroRevolt;

/**
* @ORM\Entity(repositoryClass=RevoltRepository::class)

+ 1
- 1
src/Entity/Subthematic.php View File

@@ -4,7 +4,7 @@ namespace App\Entity;

use Lc\PietroBundle\Repository\Subthematic\SubthematicRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\PietroBundle\Model\Subthematic as PietroSubthematic;
use Lc\PietroBundle\Model\Subthematic\Subthematic as PietroSubthematic;

/**
* @ORM\Entity(repositoryClass=SubthematicRepository::class)

+ 1
- 1
src/Entity/Territory.php View File

@@ -6,7 +6,7 @@ use Lc\PietroBundle\Repository\Territory\TerritoryRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Lc\PietroBundle\Model\Territory as PietroTerritory;
use Lc\PietroBundle\Model\Territory\Territory as PietroTerritory;

/**
* @ORM\Entity(repositoryClass=TerritoryRepository::class)

+ 1
- 1
src/Entity/Thematic.php View File

@@ -4,7 +4,7 @@ namespace App\Entity;

use Lc\PietroBundle\Repository\Thematic\ThematicRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\PietroBundle\Model\Thematic as PietroThematic;
use Lc\PietroBundle\Model\Thematic\Thematic as PietroThematic;

/**
* @ORM\Entity(repositoryClass=ThematicRepository::class)

+ 51
- 0
symfony.lock View File

@@ -140,6 +140,18 @@
"gedmo/doctrine-extensions": {
"version": "v3.0.5"
},
"guzzlehttp/guzzle": {
"version": "7.3.0"
},
"guzzlehttp/promises": {
"version": "1.5.0"
},
"guzzlehttp/psr7": {
"version": "2.1.0"
},
"hamcrest/hamcrest-php": {
"version": "v2.0.1"
},
"imagine/imagine": {
"version": "1.2.4"
},
@@ -161,6 +173,27 @@
"ref": "5a5bdc2d0e2533ed6935d5ae562f2b318a8fc1ee"
}
},
"mailjet/mailjet-apiv3-php": {
"version": "v1.5.5"
},
"mailjet/mailjet-bundle": {
"version": "1.0",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "master",
"version": "1.0",
"ref": "48a7f92015372654b5056855da5e94d54bd8d948"
},
"files": [
"config/packages/mailjet.yaml"
]
},
"mailjet/mailjet-swiftmailer": {
"version": "1.0.6"
},
"mockery/mockery": {
"version": "1.4.4"
},
"monolog/monolog": {
"version": "2.2.0"
},
@@ -194,12 +227,24 @@
"psr/event-dispatcher": {
"version": "1.0.0"
},
"psr/http-client": {
"version": "1.0.1"
},
"psr/http-factory": {
"version": "1.0.1"
},
"psr/http-message": {
"version": "1.0.1"
},
"psr/link": {
"version": "1.0.0"
},
"psr/log": {
"version": "1.1.4"
},
"ralouphie/getallheaders": {
"version": "3.0.3"
},
"sabberworm/php-css-parser": {
"version": "8.3.1"
},
@@ -227,6 +272,9 @@
"config/packages/stof_doctrine_extensions.yaml"
]
},
"swiftmailer/swiftmailer": {
"version": "v5.4.12"
},
"symfony/asset": {
"version": "v5.2.7"
},
@@ -415,6 +463,9 @@
"symfony/orm-pack": {
"version": "v2.1.0"
},
"symfony/password-hasher": {
"version": "v5.3.8"
},
"symfony/phpunit-bridge": {
"version": "5.1",
"recipe": {

+ 4
- 4
templates/frontend/carto-carte.html.twig View File

@@ -54,19 +54,19 @@

{% for key, result in resultSortArray %}
<div class="img-map img-{{ key }}">
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_REVOLT')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %}
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('Lc\\PietroBundle\\Model\\AbstractData::CATEGORY_REVOLT')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %}
<img src="{{ 'assets/img/Picto-Revoltes.png' }}" alt="" data-toggle="popover"
tabindex="0" data-content='<span>Nombre de Révoltes : {{ result.Revolt }} </span> {{ url }}'>

{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_DREAM')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %}
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('Lc\\PietroBundle\\Model\\AbstractData::CATEGORY_DREAM')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %}
<img src="{{ 'assets/img/Picto-Reve.png' }}" alt="" data-toggle="popover"
tabindex="0" data-content='<span>Nombre de Rêves : {{ result.Dream }} </span> {{ url }}'>

{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_PROJECTBOOST')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %}
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('Lc\\PietroBundle\\Model\\AbstractData::CATEGORY_PROJECTBOOST')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %}
<img src="{{ 'assets/img/Picto-Actions-Booster.png' }}" alt="" data-toggle="popover"
tabindex="0" data-content='<span>Nombre de projets à booster : {{ result.ProjectBoost }} </span> {{ url }}'>

{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_PROJECTINSPIRING')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %}
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('Lc\\PietroBundle\\Model\\AbstractData::CATEGORY_PROJECTINSPIRING')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %}
<img src="{{ 'assets/img/Picto-Actions-Inspirantes.png' }}" alt="" data-toggle="popover"
tabindex="0" data-content='<span>Nombre de projets inspirants : {{ result.ProjectInspiring }} </span> {{ url }}'>
</div>

Loading…
Cancel
Save