ProductQtyLogService
extends TransactionalService
in package
Class ProductQtyLog `
Table of Contents
Properties
- $container : ContainerInterface
- $em : EntityManager
- $productQtyLogRepository : ProductQtyLogRepository
Methods
- addRepository() : void
- Add a repository to this service
- addService() : void
- Add a service to this service
- find() : ProductQtyLog|object|null
- findAll() : array<string|int, ProductQtyLog>|Collection
- findBy() : mixed
- findByProduct() : mixed
- findOneBy() : ProductQtyLog|object|null
- getDispoUpdated() : array<string|int, mixed>|int|string
- getEntityManager() : EntityManager
- Getter of the Entity Manager
- getRepo() : ProductQtyLogRepository
- log() : ProductQtyLog
- Logging
- productChangeLog() : mixed
- save() : ProductQtyLog
- Save a ProductQtyLog
- search() : Paginator
- setEntityManager() : mixed
- Setter of the Entity Manager
Properties
$container
protected
ContainerInterface
$container
$em
protected
EntityManager
$em
The Entity Manager
$productQtyLogRepository
protected
ProductQtyLogRepository
$productQtyLogRepository
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) : ProductQtyLog|object|null
Parameters
- $id : mixed
Return values
ProductQtyLog|object|nullfindAll()
public
findAll() : array<string|int, ProductQtyLog>|Collection
Return values
array<string|int, ProductQtyLog>|CollectionfindBy()
public
findBy(mixed $params[, array<string|int, mixed> $sort = [] ]) : mixed
Parameters
- $params : mixed
- $sort : array<string|int, mixed> = []
findByProduct()
public
findByProduct(mixed $id[, array<string|int, mixed> $sort = [] ]) : mixed
Parameters
- $id : mixed
- $sort : array<string|int, mixed> = []
findOneBy()
public
findOneBy([array<string|int, mixed> $params = [] ]) : ProductQtyLog|object|null
Parameters
- $params : array<string|int, mixed> = []
Return values
ProductQtyLog|object|nullgetDispoUpdated()
public
getDispoUpdated(mixed $idprod) : array<string|int, mixed>|int|string
Parameters
- $idprod : mixed
Return values
array<string|int, mixed>|int|stringgetEntityManager()
Getter of the Entity Manager
public
getEntityManager() : EntityManager
Return values
EntityManagergetRepo()
public
getRepo() : ProductQtyLogRepository
Return values
ProductQtyLogRepositorylog()
Logging
public
log(mixed $product, mixed $newQty, mixed $oldQty, mixed $message[, null $sale = null ][, null $action = null ][, null $user = null ]) : ProductQtyLog
Parameters
- $product : mixed
- $newQty : mixed
- $oldQty : mixed
- $message : mixed
- $sale : null = null
- $action : null = null
- $user : null = null
Tags
Return values
ProductQtyLogproductChangeLog()
public
productChangeLog(mixed $saleProduct, mixed $action[, mixed $newSpQty = 0 ][, mixed $product = null ][, mixed $user = null ]) : mixed
Parameters
- $saleProduct : mixed
- $action : mixed
- $newSpQty : mixed = 0
- $product : mixed = null
- $user : mixed = null
save()
Save a ProductQtyLog
public
save(ProductQtyLog $productQtyLog) : ProductQtyLog
Parameters
- $productQtyLog : ProductQtyLog
Return values
ProductQtyLogsearch()
public
search(mixed $data[, int $page = 0 ][, null $max = NULL ][, bool $getResult = true ]) : Paginator
Parameters
- $data : mixed
- $page : int = 0
- $max : null = NULL
- $getResult : bool = true
Return values
PaginatorsetEntityManager()
Setter of the Entity Manager
public
setEntityManager(EntityManager $em) : mixed
Parameters
- $em : EntityManager
-
the Entity Manager