mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 22:46:13 +00:00
fix cs
This commit is contained in:
parent
17a81d7e66
commit
689f612382
@ -25,10 +25,10 @@ class LocationApiController extends ApiController
|
|||||||
->leftJoin('e.locationType', 'lt')
|
->leftJoin('e.locationType', 'lt')
|
||||||
->andWhere(
|
->andWhere(
|
||||||
$query->expr()->andX(
|
$query->expr()->andX(
|
||||||
$query->expr()->eq('e.availableForUsers', "'TRUE'"),
|
$query->expr()->eq('e.availableForUsers', "'TRUE'"),
|
||||||
$query->expr()->eq('lt.availableForUsers', "'TRUE'"),
|
$query->expr()->eq('lt.availableForUsers', "'TRUE'"),
|
||||||
$query->expr()->eq('e.active', "'TRUE'"),
|
$query->expr()->eq('e.active', "'TRUE'"),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ class Location implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
/**
|
/**
|
||||||
* @ORM\ManyToOne(targetEntity=Address::class, cascade={"persist"})
|
* @ORM\ManyToOne(targetEntity=Address::class, cascade={"persist"})
|
||||||
* @ORM\JoinColumn(nullable=true)
|
* @ORM\JoinColumn(nullable=true)
|
||||||
* @Serializer\Groups({"read", "write"})
|
* @Serializer\Groups({"read", "write", "docgen:read"})
|
||||||
*/
|
*/
|
||||||
private ?Address $address = null;
|
private ?Address $address = null;
|
||||||
|
|
||||||
@ -72,26 +72,26 @@ class Location implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
* @ORM\Id
|
* @ORM\Id
|
||||||
* @ORM\GeneratedValue
|
* @ORM\GeneratedValue
|
||||||
* @ORM\Column(type="integer")
|
* @ORM\Column(type="integer")
|
||||||
* @Serializer\Groups({"read"})
|
* @Serializer\Groups({"read", "docgen:read"})
|
||||||
*/
|
*/
|
||||||
private ?int $id = null;
|
private ?int $id = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\ManyToOne(targetEntity=LocationType::class)
|
* @ORM\ManyToOne(targetEntity=LocationType::class)
|
||||||
* @ORM\JoinColumn(nullable=false)
|
* @ORM\JoinColumn(nullable=false)
|
||||||
* @Serializer\Groups({"read", "write"})
|
* @Serializer\Groups({"read", "write", "docgen:read"})
|
||||||
*/
|
*/
|
||||||
private ?LocationType $locationType = null;
|
private ?LocationType $locationType = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="string", length=255, nullable=true)
|
* @ORM\Column(type="string", length=255, nullable=true)
|
||||||
* @Serializer\Groups({"read", "write"})
|
* @Serializer\Groups({"read", "write", "docgen:read"})
|
||||||
*/
|
*/
|
||||||
private ?string $name = null;
|
private ?string $name = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="string", length=64, nullable=true)
|
* @ORM\Column(type="string", length=64, nullable=true)
|
||||||
* @Serializer\Groups({"read", "write"})
|
* @Serializer\Groups({"read", "write", "docgen:read"})
|
||||||
* @Assert\Regex(pattern="/^([\+{1}])([0-9\s*]{4,20})$/")
|
* @Assert\Regex(pattern="/^([\+{1}])([0-9\s*]{4,20})$/")
|
||||||
* @PhonenumberConstraint(type="any")
|
* @PhonenumberConstraint(type="any")
|
||||||
*/
|
*/
|
||||||
@ -99,7 +99,7 @@ class Location implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="string", length=64, nullable=true)
|
* @ORM\Column(type="string", length=64, nullable=true)
|
||||||
* @Serializer\Groups({"read", "write"})
|
* @Serializer\Groups({"read", "write", "docgen:read"})
|
||||||
* @Assert\Regex(pattern="/^([\+{1}])([0-9\s*]{4,20})$/")
|
* @Assert\Regex(pattern="/^([\+{1}])([0-9\s*]{4,20})$/")
|
||||||
* @PhonenumberConstraint(type="any")
|
* @PhonenumberConstraint(type="any")
|
||||||
*/
|
*/
|
||||||
|
@ -71,13 +71,14 @@ class LocationType
|
|||||||
* @ORM\Id
|
* @ORM\Id
|
||||||
* @ORM\GeneratedValue
|
* @ORM\GeneratedValue
|
||||||
* @ORM\Column(type="integer")
|
* @ORM\Column(type="integer")
|
||||||
* @Serializer\Groups({"read"})
|
* @Serializer\Groups({"read", "docgen:read"})
|
||||||
*/
|
*/
|
||||||
private ?int $id = null;
|
private ?int $id = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="json")
|
* @ORM\Column(type="json")
|
||||||
* @Serializer\Groups({"read"})
|
* @Serializer\Groups({"read", "docgen:read"})
|
||||||
|
* @Serializer\Context({"is-translatable": true}, groups={"docgen:read"})
|
||||||
*/
|
*/
|
||||||
private array $title = [];
|
private array $title = [];
|
||||||
|
|
||||||
|
@ -406,8 +406,6 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get email.
|
* Get email.
|
||||||
*
|
|
||||||
* @return string|null
|
|
||||||
*/
|
*/
|
||||||
public function getEmail(): ?string
|
public function getEmail(): ?string
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user