FieldOfActivity
-
#[Entity]
-
$repositoryClass: \App\Repository\FieldOfActivityRepository::class
-
#[UniqueEntity]
-
$fields: 'name'
-
$message: 'Le nom du domaine est unique'
Table of Contents
Properties
-
$created_at
: DateTimeImmutable|null
-
$id
: int|null
-
$name
: string|null
-
$pointOfSaleId
: int|null
-
$suppliers
: Collection
Methods
-
__construct()
: mixed
-
addSupplier()
: static
-
getCreatedAt()
: DateTimeImmutable|null
-
getId()
: int|null
-
getName()
: string|null
-
getPointOfSaleId()
: int|null
-
getSuppliers()
: Collection<int, Supplier>
-
removeSupplier()
: static
-
setCreatedAt()
: static
-
setName()
: static
-
setPointOfSaleId()
: static
$created_at
private
DateTimeImmutable|null
$created_at
= null
$id
private
int|null
$id
= null
-
#[Column]
-
#[GeneratedValue]
-
#[Id]
$name
private
string|null
$name
= null
$pointOfSaleId
private
int|null
$pointOfSaleId
= null
$suppliers
private
Collection
$suppliers
-
#[OneToMany]
-
$mappedBy: 'fieldOfActivity'
-
$targetEntity: \App\Entity\Supplier::class
__construct()
public
__construct() : mixed
addSupplier()
public
addSupplier(Supplier $supplier) : static
Parameters
-
$supplier
: Supplier
-
getCreatedAt()
public
getCreatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null
getId()
public
getId() : int|null
getName()
public
getName() : string|null
Return values
string|null
getPointOfSaleId()
public
getPointOfSaleId() : int|null
getSuppliers()
public
getSuppliers() : Collection<int, Supplier>
removeSupplier()
public
removeSupplier(Supplier $supplier) : static
Parameters
-
$supplier
: Supplier
-
setCreatedAt()
public
setCreatedAt(DateTimeImmutable $created_at) : static
Parameters
-
$created_at
: DateTimeImmutable
-
setName()
public
setName(string $name) : static
Parameters
-
$name
: string
-
setPointOfSaleId()
public
setPointOfSaleId(int $pointOfSaleId) : static
Parameters
-
$pointOfSaleId
: int
-