ManufacturerService
extends TransactionalService
in package
Class ManufacturerService `
Table of Contents
Properties
- $em : EntityManager
- $manufacturerRepository : mixed
Methods
- addRepository() : void
- Add a repository to this service
- addService() : void
- Add a service to this service
- find() : mixed
- findAll() : mixed
- findBy() : mixed
- getAllByOrder() : mixed
- getEntityManager() : EntityManager
- Getter of the Entity Manager
- getInfos() : array<string|int, mixed>
- getRepo() : mixed
- save() : mixed
- Save a Manufacturer
- setEntityManager() : mixed
- Setter of the Entity Manager
Properties
$em
protected
EntityManager
$em
The Entity Manager
$manufacturerRepository
protected
mixed
$manufacturerRepository
Methods
addRepository()
Add a repository to this service
public
addRepository(int $key, string $class) : void
Parameters
- $key : int
-
Key
- $class : string
-
Class
addService()
Add a service to this service
public
addService(int $key, mixed $service) : void
Parameters
- $key : int
-
Key
- $service : mixed
find()
public
find(mixed $id) : mixed
Parameters
- $id : mixed
findAll()
public
findAll() : mixed
findBy()
public
findBy([array<string|int, mixed> $params = [] ]) : mixed
Parameters
- $params : array<string|int, mixed> = []
getAllByOrder()
public
getAllByOrder() : mixed
getEntityManager()
Getter of the Entity Manager
public
getEntityManager() : EntityManager
Return values
EntityManagergetInfos()
public
getInfos() : array<string|int, mixed>
Return values
array<string|int, mixed>getRepo()
public
getRepo() : mixed
save()
Save a Manufacturer
public
save(Manufacturer $manufacturer) : mixed
Parameters
- $manufacturer : Manufacturer
setEntityManager()
Setter of the Entity Manager
public
setEntityManager(EntityManager $em) : mixed
Parameters
- $em : EntityManager
-
the Entity Manager