mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
csfixes
This commit is contained in:
parent
96e38a8a6d
commit
4ea72f7d9d
@ -197,6 +197,15 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
*/
|
*/
|
||||||
private ?string $email = null;
|
private ?string $email = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ORM\Column(name="firstname", type="string", length=255)
|
||||||
|
* @Assert\Length(min="2")
|
||||||
|
* @Assert\NotNull
|
||||||
|
* @Assert\NotBlank
|
||||||
|
* @Groups({"read", "write", "docgen:read", "docgen:read:3party:parent"})
|
||||||
|
*/
|
||||||
|
private ?string $firstname = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
* @ORM\Column(name="id", type="integer")
|
* @ORM\Column(name="id", type="integer")
|
||||||
@ -222,15 +231,6 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
*/
|
*/
|
||||||
private ?string $name = '';
|
private ?string $name = '';
|
||||||
|
|
||||||
/**
|
|
||||||
* @ORM\Column(name="firstname", type="string", length=255)
|
|
||||||
* @Assert\Length(min="2")
|
|
||||||
* @Assert\NotNull
|
|
||||||
* @Assert\NotBlank
|
|
||||||
* @Groups({"read", "write", "docgen:read", "docgen:read:3party:parent"})
|
|
||||||
*/
|
|
||||||
private ?string $firstname = '';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* [fr] Raison sociale.
|
* [fr] Raison sociale.
|
||||||
*
|
*
|
||||||
@ -463,6 +463,11 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
return $this->email;
|
return $this->email;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getFirstname(): string
|
||||||
|
{
|
||||||
|
return $this->firstname;
|
||||||
|
}
|
||||||
|
|
||||||
public function getId(): ?int
|
public function getId(): ?int
|
||||||
{
|
{
|
||||||
return $this->id;
|
return $this->id;
|
||||||
@ -478,11 +483,6 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getFirstname(): string
|
|
||||||
{
|
|
||||||
return $this->firstname;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getNameCompany(): ?string
|
public function getNameCompany(): ?string
|
||||||
{
|
{
|
||||||
return $this->nameCompany;
|
return $this->nameCompany;
|
||||||
@ -770,6 +770,13 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setFirstname($firstname): self
|
||||||
|
{
|
||||||
|
$this->firstname = $firstname;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
public function setKind(?string $kind): ThirdParty
|
public function setKind(?string $kind): ThirdParty
|
||||||
{
|
{
|
||||||
$this->kind = $kind;
|
$this->kind = $kind;
|
||||||
@ -784,13 +791,6 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setFirstname($firstname): self
|
|
||||||
{
|
|
||||||
$this->firstname = $firstname;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $nameCompany
|
* @param string $nameCompany
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Chill is a software for social workers
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view
|
||||||
|
* the LICENSE file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Chill\Migrations\ThirdParty;
|
namespace Chill\Migrations\ThirdParty;
|
||||||
@ -12,6 +19,12 @@ use Doctrine\Migrations\AbstractMigration;
|
|||||||
*/
|
*/
|
||||||
final class Version20220311133150 extends AbstractMigration
|
final class Version20220311133150 extends AbstractMigration
|
||||||
{
|
{
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
// this down() migration is auto-generated, please modify it to your needs
|
||||||
|
$this->addSql('ALTER TABLE chill_3party.third_party DROP firstname');
|
||||||
|
}
|
||||||
|
|
||||||
public function getDescription(): string
|
public function getDescription(): string
|
||||||
{
|
{
|
||||||
return 'Adding firstname to thirdparty';
|
return 'Adding firstname to thirdparty';
|
||||||
@ -22,10 +35,4 @@ final class Version20220311133150 extends AbstractMigration
|
|||||||
// this up() migration is auto-generated, please modify it to your needs
|
// this up() migration is auto-generated, please modify it to your needs
|
||||||
$this->addSql('ALTER TABLE chill_3party.third_party ADD firstname VARCHAR(255) DEFAULT \'\' NOT NULL');
|
$this->addSql('ALTER TABLE chill_3party.third_party ADD firstname VARCHAR(255) DEFAULT \'\' NOT NULL');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function down(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this down() migration is auto-generated, please modify it to your needs
|
|
||||||
$this->addSql('ALTER TABLE chill_3party.third_party DROP firstname');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user