mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
POST, PUT, PATCH working for thirdparty and added to swagger. Assert for 'centers'(temporarily) removed from thirdparty entity
This commit is contained in:
@@ -96,7 +96,7 @@ class ThirdParty
|
||||
* @ORM\Column(name="types", type="json", nullable=true)
|
||||
* @Assert\Count(min=1)
|
||||
*/
|
||||
private $type;
|
||||
private $types;
|
||||
|
||||
/**
|
||||
* Contact Persons: One Institutional ThirdParty has Many Contact Persons
|
||||
@@ -170,7 +170,6 @@ class ThirdParty
|
||||
* @var Collection
|
||||
* @ORM\ManyToMany(targetEntity="\Chill\MainBundle\Entity\Center")
|
||||
* @ORM\JoinTable(name="chill_3party.party_center")
|
||||
* @Assert\Count(min=1)
|
||||
*/
|
||||
private $centers;
|
||||
|
||||
@@ -327,7 +326,7 @@ class ThirdParty
|
||||
* @param array|null $type
|
||||
* @return ThirdParty
|
||||
*/
|
||||
public function setType(array $type = null)
|
||||
public function setTypes(array $type = null)
|
||||
{
|
||||
// remove all keys from the input data
|
||||
$this->type = \array_values($type);
|
||||
@@ -340,7 +339,7 @@ class ThirdParty
|
||||
*
|
||||
* @return array|null
|
||||
*/
|
||||
public function getType()
|
||||
public function getTypes()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
Reference in New Issue
Block a user