ContainerProductService
extends TransactionalService
in package
Class ContainerProductService
Table of Contents
Properties
- $containerProductRepository : ContainerProductRepository
- $em : EntityManager
Methods
- add() : ContainerProduct
- addRepository() : void
- Add a repository to this service
- addService() : void
- Add a service to this service
- dispoArrival() : mixed
- find() : mixed
- findAll() : mixed
- getAchatsByProduct() : mixed
- getEntityManager() : EntityManager
- Getter of the Entity Manager
- getRepo() : ContainerProductRepository
- remove() : mixed
- Delete ContainerProduct
- save() : mixed
- Save a ContainerProduct
- setEntityManager() : mixed
- Setter of the Entity Manager
- sumQtyProduct() : mixed
Properties
$containerProductRepository
protected
ContainerProductRepository
$containerProductRepository
$em
protected
EntityManager
$em
The Entity Manager
Methods
add()
public
add(CommandProduct $commandProduct, Container $container, int $qty) : ContainerProduct
Parameters
- $commandProduct : CommandProduct
- $container : Container
- $qty : int
Return values
ContainerProductaddRepository()
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
dispoArrival()
public
dispoArrival(mixed $product) : mixed
Parameters
- $product : mixed
find()
public
find(mixed $id) : mixed
Parameters
- $id : mixed
findAll()
public
findAll() : mixed
getAchatsByProduct()
public
getAchatsByProduct(mixed $idprod, mixed $start, mixed $end) : mixed
Parameters
- $idprod : mixed
- $start : mixed
- $end : mixed
getEntityManager()
Getter of the Entity Manager
public
getEntityManager() : EntityManager
Return values
EntityManagergetRepo()
public
getRepo() : ContainerProductRepository
Return values
ContainerProductRepositoryremove()
Delete ContainerProduct
public
remove(ContainerProduct $containerProduct) : mixed
Parameters
- $containerProduct : ContainerProduct
Tags
save()
Save a ContainerProduct
public
save(ContainerProduct $containerProduct) : mixed
Parameters
- $containerProduct : ContainerProduct
setEntityManager()
Setter of the Entity Manager
public
setEntityManager(EntityManager $em) : mixed
Parameters
- $em : EntityManager
-
the Entity Manager
sumQtyProduct()
public
sumQtyProduct(mixed $product) : mixed
Parameters
- $product : mixed