CommandService
extends TransactionalService
in package
Class Command `
Table of Contents
Properties
- $commandRepository : CommandRepository
- $em : EntityManager
Methods
- add() : Command
- addRepository() : void
- Add a repository to this service
- addService() : void
- Add a service to this service
- find() : mixed
- findAll() : mixed
- findBy() : mixed
- getEntityManager() : EntityManager
- Getter of the Entity Manager
- getRepo() : CommandRepository
- getTotalPiCommand() : void
- save() : mixed
- Save a Command
- searchCommandProduct() : mixed
- search a Command
- setEntityManager() : mixed
- Setter of the Entity Manager
Properties
$commandRepository
protected
CommandRepository
$commandRepository
$em
protected
EntityManager
$em
The Entity Manager
Methods
add()
public
add(mixed $reference, mixed $createdAt, mixed $arrivalAt, mixed $deposit) : Command
Parameters
- $reference : mixed
- $createdAt : mixed
- $arrivalAt : mixed
- $deposit : mixed
Return values
CommandaddRepository()
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> = []
getEntityManager()
Getter of the Entity Manager
public
getEntityManager() : EntityManager
Return values
EntityManagergetRepo()
public
getRepo() : CommandRepository
Return values
CommandRepositorygetTotalPiCommand()
public
getTotalPiCommand(mixed $command) : void
Parameters
- $command : mixed
save()
Save a Command
public
save(Command $command) : mixed
Parameters
- $command : Command
searchCommandProduct()
search a Command
public
searchCommandProduct(mixed $data[, mixed $page = 0 ][, mixed $max = NULL ][, mixed $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = NULL
- $getResult : mixed = true
setEntityManager()
Setter of the Entity Manager
public
setEntityManager(EntityManager $em) : mixed
Parameters
- $em : EntityManager
-
the Entity Manager