-
-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
Such schema:
types:
Project:
properties:
shareWith:
range: "https://schema.org/email"
cardinality: "(0..*)"
attributes:
ORM\Column: { type: "simple_array" }
Will generate:
/**
* @var array|null
*
* @see _:shareWith
*/
#[ORM\Column(type: 'simple_array', nullable: true)]
private array $shareWith = [];
/**
* @return array|null
*/
public function getShareWith(): array
{
return $this->shareWith;
}
// ... adder, remover or setter
And should be
/**
* @see _:shareWith
*/
#[ORM\Column(type: 'simple_array', nullable: true)]
private ?array $shareWith = [];
public function getShareWith(): ?array
{
return $this->shareWith;
}
Metadata
Metadata
Assignees
Labels
No labels