Integration rmq Julien

This commit is contained in:
Marc Ducobu 2021-04-27 11:24:26 +02:00
parent cda32fb925
commit 38ac3badef
9 changed files with 6 additions and 125 deletions

View File

@ -47,7 +47,7 @@ class Goal
$this->results = new ArrayCollection();
}
public function getTitle(): ?array
public function getTitle(): array
{
return $this->title;
}

View File

@ -51,7 +51,7 @@ class Result
return $this->id;
}
public function getTitle(): ?array
public function getTitle(): array
{
return $this->title;
}

View File

@ -152,7 +152,7 @@ class SocialAction
return $this;
}
public function getTitle(): ?array
public function getTitle(): array
{
return $this->title;
}

View File

@ -110,7 +110,7 @@ class SocialIssue
return $this;
}
public function getTitle(): ?array
public function getTitle(): array
{
return $this->title;
}

View File

@ -18,33 +18,4 @@ class GoalRepository extends ServiceEntityRepository
{
parent::__construct($registry, Goal::class);
}
// /**
// * @return Goal[] Returns an array of Goal objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('g')
->andWhere('g.exampleField = :val')
->setParameter('val', $value)
->orderBy('g.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/
/*
public function findOneBySomeField($value): ?Goal
{
return $this->createQueryBuilder('g')
->andWhere('g.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

View File

@ -18,33 +18,4 @@ class ResultRepository extends ServiceEntityRepository
{
parent::__construct($registry, Result::class);
}
// /**
// * @return Result[] Returns an array of Result objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('r')
->andWhere('r.exampleField = :val')
->setParameter('val', $value)
->orderBy('r.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/
/*
public function findOneBySomeField($value): ?Result
{
return $this->createQueryBuilder('r')
->andWhere('r.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

View File

@ -18,33 +18,4 @@ class SocialActionRepository extends ServiceEntityRepository
{
parent::__construct($registry, SocialAction::class);
}
// /**
// * @return SocialAction[] Returns an array of SocialAction objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('s')
->andWhere('s.exampleField = :val')
->setParameter('val', $value)
->orderBy('s.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/
/*
public function findOneBySomeField($value): ?SocialAction
{
return $this->createQueryBuilder('s')
->andWhere('s.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

View File

@ -18,33 +18,4 @@ class SocialIssueRepository extends ServiceEntityRepository
{
parent::__construct($registry, SocialIssue::class);
}
// /**
// * @return SocialIssue[] Returns an array of SocialIssue objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('s')
->andWhere('s.exampleField = :val')
->setParameter('val', $value)
->orderBy('s.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/
/*
public function findOneBySomeField($value): ?SocialIssue
{
return $this->createQueryBuilder('s')
->andWhere('s.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

View File

@ -8,18 +8,17 @@ use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
* Create Social action, Social Issue, Work Goal and Work Result
*/
final class Version20210426145930 extends AbstractMigration
{
public function getDescription() : string
{
return '';
return 'Create Social action, Social Issue, Work Goal and Work Result';
}
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SEQUENCE chill_person_social_action_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE chill_person_social_issue_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE chill_person_social_work_goal_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
@ -54,8 +53,6 @@ final class Version20210426145930 extends AbstractMigration
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE chill_person_social_action DROP CONSTRAINT FK_B7ABFAB8727ACA70');
$this->addSql('ALTER TABLE chill_person_social_action_goal DROP CONSTRAINT FK_163CA4DD3DC32179');
$this->addSql('ALTER TABLE chill_person_social_action_result DROP CONSTRAINT FK_CA98C58C3DC32179');