ProductRepository
extends BaseRepository
in package
ProductRepository
This class was generated by the Doctrine ORM. Add your own custom repository methods below.
Table of Contents
Constants
- PDO_EXCEPTION_INTEGRITY_CONSTRAINT_VIOLATION = '23000'
- PDO Exception Integrity constraint violation
- PDO_EXCEPTION_UNIQUE_VIOLATION = '23505'
- PDO Exception Unique violation
Methods
- addManufacturerSql() : mixed
- delete() : mixed
- Removes an entity
- findAll() : Collection
- Find all
- findById() : Entity
- Finds an entity by the identifier(s)
- findByName() : mixed
- findBySkuString() : mixed
- findOneByIdFast() : mixed
- findOneBySkuFast() : mixed
- findOneBySql() : mixed
- findProductsForMarketingScript() : array<string|int, mixed>|int|string
- getAllNewProductForColisEan() : void
- getAllProductMenzzoForEanColis() : mixed
- getAllProducts() : array<string|int, mixed>|float|int|string
- getAllProductWithCmpOffre() : mixed
- getAllPublishProduct() : mixed
- getArriving() : array<string|int, mixed>|int|string
- getArrivingCommand() : array<string|int, mixed>|int|mixed|string|null
- getAsirGroupProducts() : mixed
- getAsirInternalStock() : Paginator
- getAsirScannedAndUndeliveredOrders() : Paginator
- getAsirStock() : Paginator
- getComposedProduct() : mixed
- getFullSQL() : int
- Get SQL from query
- getLastArrived() : mixed
- getListParamsByDql() : mixed
- getMaxCoeffProductInfo() : mixed
- getNewProductsOrderedByContainerArrivalDate() : array<string|int, mixed>
- getProductLibelles() : array<string|int, mixed>|int|string
- getProductSaleTotals() : array<string|int, mixed>
- getProductsForCommands() : mixed
- getProductsForMerchantSync() : mixed
- getProductsWithAttributeSetsHigherThan72() : array<string|int, mixed>|float|int|string
- getProductWithoutDropship() : array<string|int, mixed>|int|string
- getQtyCmdProcessing() : mixed
- getQtyContenaireCmdProcessing() : mixed
- getQtyContenaireNotArrived() : mixed
- getSaleProductAsirGroup() : array<string|int, mixed>|float|int|string
- getSaleShowProducts() : array<string|int, mixed>
- Get Sale Show products
- getSameSkuProducts() : mixed
- getSumArrivingCommandQty() : array<string|int, mixed>|int|mixed|string|null
- getTheLastBuyingPriceCommand() : void
- insert() : mixed
- Inserts an entity
- paginateProductPricePriceProposalAction() : Paginator
- Search all products
- queryFindAll() : QueryBuilder
- Find all in query
- removeManufacturerSql() : mixed
- save() : void
- Save an entity
- saveProductSql() : bool
- searchAlertNoCmd() : mixed
- searchAllMediaProducts() : Paginator
- Search all media products
- searchAllProducts() : Paginator
- Search all products
- searchAllProductsBuyingPrice() : Paginator
- Search all products
- searchAllProductsForDecoPhoto() : Paginator
- searchAllProductsForNewCategories() : Paginator
- searchAllProductsForUniver() : Paginator
- searchAllProductsForUpdateCategories() : Paginator
- searchDropshipOnline() : Paginator
- searchEmplacement() : mixed
- Search Emplacement
- searchEndOfPoductStock() : mixed
- searchJolipaProductStock() : mixed
- searchMenzzoProductToVirExpedition() : Paginator
- searchPoductDictionaries() : mixed
- searchProductPrice() : mixed
- Seearch product price
- searchProductPurchases() : mixed
- searchProductsByNameAndManufacturer() : array<string|int, mixed>|float|int|string
- Get products by name and manufacturer id
- searchProductsByNameAndSku() : array<string|int, mixed>|float|int|string
- Get products by name and SKU
- searchProductsForInventory() : array<string|int, mixed>|int|string
- searchProductsForSale() : array<string|int, mixed>|int|string
- searchProductsNoStock() : mixed
- searchProductStock() : mixed
- searchProductStockValue() : mixed
- searchProductTags() : Paginator
- searchUpStairsExtraShippingByProduct() : mixed
- update() : mixed
- Updates an entity
- updateSupplierInternalStock() : void
- getParamsArray() : int
- Get query params list
Constants
PDO_EXCEPTION_INTEGRITY_CONSTRAINT_VIOLATION
PDO Exception Integrity constraint violation
public
mixed
PDO_EXCEPTION_INTEGRITY_CONSTRAINT_VIOLATION
= '23000'
PDO_EXCEPTION_UNIQUE_VIOLATION
PDO Exception Unique violation
public
mixed
PDO_EXCEPTION_UNIQUE_VIOLATION
= '23505'
Methods
addManufacturerSql()
public
addManufacturerSql(mixed $data) : mixed
Parameters
- $data : mixed
Tags
delete()
Removes an entity
public
delete(Entity $entity) : mixed
Parameters
- $entity : Entity
-
The entity to remove
Tags
findAll()
Find all
public
findAll([array<string|int, mixed> $parameters = array() ]) : Collection
Parameters
- $parameters : array<string|int, mixed> = array()
-
Parameters
Return values
CollectionfindById()
Finds an entity by the identifier(s)
public
findById(Entity $entity) : Entity
Parameters
- $entity : Entity
-
The entity to find
Return values
Entity —The entity
findByName()
public
findByName(mixed $name) : mixed
Parameters
- $name : mixed
findBySkuString()
public
findBySkuString(mixed $sku) : mixed
Parameters
- $sku : mixed
findOneByIdFast()
public
findOneByIdFast(mixed $id) : mixed
Parameters
- $id : mixed
findOneBySkuFast()
public
findOneBySkuFast(mixed $sku) : mixed
Parameters
- $sku : mixed
findOneBySql()
public
findOneBySql(mixed $criteria) : mixed
Parameters
- $criteria : mixed
Tags
findProductsForMarketingScript()
public
findProductsForMarketingScript([mixed $query = null ]) : array<string|int, mixed>|int|string
Parameters
- $query : mixed = null
Return values
array<string|int, mixed>|int|stringgetAllNewProductForColisEan()
public
getAllNewProductForColisEan() : void
getAllProductMenzzoForEanColis()
public
getAllProductMenzzoForEanColis() : mixed
getAllProducts()
public
getAllProducts() : array<string|int, mixed>|float|int|string
Return values
array<string|int, mixed>|float|int|stringgetAllProductWithCmpOffre()
public
getAllProductWithCmpOffre() : mixed
getAllPublishProduct()
public
getAllPublishProduct() : mixed
getArriving()
public
getArriving(mixed $productId) : array<string|int, mixed>|int|string
Parameters
- $productId : mixed
Return values
array<string|int, mixed>|int|stringgetArrivingCommand()
public
getArrivingCommand(mixed $productId[, mixed $all = false ]) : array<string|int, mixed>|int|mixed|string|null
Parameters
- $productId : mixed
- $all : mixed = false
Tags
Return values
array<string|int, mixed>|int|mixed|string|nullgetAsirGroupProducts()
public
getAsirGroupProducts(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = null
- $getResult : mixed = true
getAsirInternalStock()
public
getAsirInternalStock(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : Paginator
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = null
- $getResult : mixed = true
Return values
PaginatorgetAsirScannedAndUndeliveredOrders()
public
getAsirScannedAndUndeliveredOrders(mixed $data[, mixed $start = 0 ][, mixed $max = null ][, mixed $getResult = true ][, mixed $viewAllStatuses = false ]) : Paginator
Parameters
- $data : mixed
- $start : mixed = 0
- $max : mixed = null
- $getResult : mixed = true
- $viewAllStatuses : mixed = false
Return values
PaginatorgetAsirStock()
public
getAsirStock(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : Paginator
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = null
- $getResult : mixed = true
Return values
PaginatorgetComposedProduct()
public
getComposedProduct(mixed $sku) : mixed
Parameters
- $sku : mixed
getFullSQL()
Get SQL from query
public
getFullSQL(Query $query) : int
Parameters
- $query : Query
Return values
intgetLastArrived()
public
getLastArrived(mixed $productId) : mixed
Parameters
- $productId : mixed
getListParamsByDql()
public
getListParamsByDql(mixed $dql) : mixed
Parameters
- $dql : mixed
getMaxCoeffProductInfo()
public
getMaxCoeffProductInfo(mixed $id) : mixed
Parameters
- $id : mixed
getNewProductsOrderedByContainerArrivalDate()
public
getNewProductsOrderedByContainerArrivalDate() : array<string|int, mixed>
Return values
array<string|int, mixed>getProductLibelles()
public
getProductLibelles([mixed $dropship = false ]) : array<string|int, mixed>|int|string
Parameters
- $dropship : mixed = false
Return values
array<string|int, mixed>|int|stringgetProductSaleTotals()
public
getProductSaleTotals([int $months = 2 ]) : array<string|int, mixed>
Parameters
- $months : int = 2
Return values
array<string|int, mixed>getProductsForCommands()
public
getProductsForCommands([mixed $manufacturer = null ]) : mixed
Parameters
- $manufacturer : mixed = null
getProductsForMerchantSync()
public
getProductsForMerchantSync(mixed $filters, mixed $storeId, mixed $offset, mixed $limit) : mixed
Parameters
- $filters : mixed
- $storeId : mixed
- $offset : mixed
- $limit : mixed
getProductsWithAttributeSetsHigherThan72()
public
getProductsWithAttributeSetsHigherThan72() : array<string|int, mixed>|float|int|string
Return values
array<string|int, mixed>|float|int|stringgetProductWithoutDropship()
public
getProductWithoutDropship() : array<string|int, mixed>|int|string
Return values
array<string|int, mixed>|int|stringgetQtyCmdProcessing()
public
getQtyCmdProcessing(mixed $idprod) : mixed
Parameters
- $idprod : mixed
getQtyContenaireCmdProcessing()
public
getQtyContenaireCmdProcessing(mixed $idprod) : mixed
Parameters
- $idprod : mixed
getQtyContenaireNotArrived()
public
getQtyContenaireNotArrived(mixed $idprod) : mixed
Parameters
- $idprod : mixed
getSaleProductAsirGroup()
public
getSaleProductAsirGroup() : array<string|int, mixed>|float|int|string
Return values
array<string|int, mixed>|float|int|stringgetSaleShowProducts()
Get Sale Show products
public
getSaleShowProducts(Sale $sale) : array<string|int, mixed>
Parameters
- $sale : Sale
Tags
Return values
array<string|int, mixed>getSameSkuProducts()
public
getSameSkuProducts() : mixed
getSumArrivingCommandQty()
public
getSumArrivingCommandQty(mixed $productId) : array<string|int, mixed>|int|mixed|string|null
Parameters
- $productId : mixed
Tags
Return values
array<string|int, mixed>|int|mixed|string|nullgetTheLastBuyingPriceCommand()
public
getTheLastBuyingPriceCommand(mixed $id) : void
Parameters
- $id : mixed
insert()
Inserts an entity
public
insert(Entity $entity) : mixed
Parameters
- $entity : Entity
-
The entity to insert
Tags
paginateProductPricePriceProposalAction()
Search all products
public
paginateProductPricePriceProposalAction(mixed $data[, int $page = 0 ][, null $max = null ]) : Paginator
Parameters
- $data : mixed
- $page : int = 0
- $max : null = null
Return values
PaginatorqueryFindAll()
Find all in query
public
queryFindAll([array<string|int, mixed> $parameters = array() ]) : QueryBuilder
Parameters
- $parameters : array<string|int, mixed> = array()
-
Parameters
Return values
QueryBuilderremoveManufacturerSql()
public
removeManufacturerSql(mixed $data) : mixed
Parameters
- $data : mixed
Tags
save()
Save an entity
public
save(Entity $entity) : void
Parameters
- $entity : Entity
-
An entity that i want saved
saveProductSql()
public
saveProductSql(mixed $data) : bool
Parameters
- $data : mixed
Tags
Return values
boolsearchAlertNoCmd()
public
searchAlertNoCmd(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = null
- $getResult : mixed = true
searchAllMediaProducts()
Search all media products
public
searchAllMediaProducts(mixed $data[, int $page = 0 ][, null $max = null ]) : Paginator
Parameters
- $data : mixed
- $page : int = 0
- $max : null = null
Return values
PaginatorsearchAllProducts()
Search all products
public
searchAllProducts(mixed $data[, int $page = 0 ][, null $max = null ]) : Paginator
Parameters
- $data : mixed
- $page : int = 0
- $max : null = null
Return values
PaginatorsearchAllProductsBuyingPrice()
Search all products
public
searchAllProductsBuyingPrice(mixed $data[, int $page = 0 ][, null $max = null ]) : Paginator
Parameters
- $data : mixed
- $page : int = 0
- $max : null = null
Return values
PaginatorsearchAllProductsForDecoPhoto()
public
searchAllProductsForDecoPhoto(mixed $data[, int $page = 0 ][, null $max = null ]) : Paginator
Parameters
- $data : mixed
- $page : int = 0
- $max : null = null
Return values
PaginatorsearchAllProductsForNewCategories()
public
searchAllProductsForNewCategories(mixed $data[, int $page = 0 ][, null $max = null ]) : Paginator
Parameters
- $data : mixed
- $page : int = 0
- $max : null = null
Return values
PaginatorsearchAllProductsForUniver()
public
searchAllProductsForUniver(mixed $data[, int $page = 0 ][, null $max = null ]) : Paginator
Parameters
- $data : mixed
- $page : int = 0
- $max : null = null
Return values
PaginatorsearchAllProductsForUpdateCategories()
public
searchAllProductsForUpdateCategories(mixed $data[, mixed $page = 0 ][, mixed $max = null ]) : Paginator
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = null
Return values
PaginatorsearchDropshipOnline()
public
searchDropshipOnline(mixed $data[, int $page = 0 ][, mixed $limit = null ], mixed $dropshipName) : Paginator
Parameters
- $data : mixed
- $page : int = 0
- $limit : mixed = null
- $dropshipName : mixed
Return values
PaginatorsearchEmplacement()
Search Emplacement
public
searchEmplacement(mixed $data[, int $page = 0 ][, null $max = null ][, bool $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : int = 0
- $max : null = null
- $getResult : bool = true
searchEndOfPoductStock()
public
searchEndOfPoductStock(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = null
- $getResult : mixed = true
searchJolipaProductStock()
public
searchJolipaProductStock(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = null
- $getResult : mixed = true
searchMenzzoProductToVirExpedition()
public
searchMenzzoProductToVirExpedition(mixed $data[, int $page = 0 ][, mixed $limit = NULL ]) : Paginator
Parameters
- $data : mixed
- $page : int = 0
- $limit : mixed = NULL
Return values
PaginatorsearchPoductDictionaries()
public
searchPoductDictionaries(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = null
- $getResult : mixed = true
searchProductPrice()
Seearch product price
public
searchProductPrice(mixed $data[, int $page = 0 ][, null $max = null ][, bool $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : int = 0
- $max : null = null
- $getResult : bool = true
searchProductPurchases()
public
searchProductPurchases(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = null
- $getResult : mixed = true
searchProductsByNameAndManufacturer()
Get products by name and manufacturer id
public
searchProductsByNameAndManufacturer(mixed $name, mixed $manufacturerId) : array<string|int, mixed>|float|int|string
Parameters
- $name : mixed
- $manufacturerId : mixed
Return values
array<string|int, mixed>|float|int|stringsearchProductsByNameAndSku()
Get products by name and SKU
public
searchProductsByNameAndSku(mixed $term) : array<string|int, mixed>|float|int|string
Parameters
- $term : mixed
Return values
array<string|int, mixed>|float|int|stringsearchProductsForInventory()
public
searchProductsForInventory([null $query = null ][, int $all = 0 ]) : array<string|int, mixed>|int|string
Parameters
- $query : null = null
- $all : int = 0
Return values
array<string|int, mixed>|int|stringsearchProductsForSale()
public
searchProductsForSale([mixed $query = null ][, mixed $type = null ][, mixed $termToSkip = null ]) : array<string|int, mixed>|int|string
Parameters
- $query : mixed = null
- $type : mixed = null
- $termToSkip : mixed = null
Return values
array<string|int, mixed>|int|stringsearchProductsNoStock()
public
searchProductsNoStock(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = null
- $getResult : mixed = true
searchProductStock()
public
searchProductStock(mixed $data[, mixed $page = 0 ][, mixed $max = NULL ][, mixed $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = NULL
- $getResult : mixed = true
searchProductStockValue()
public
searchProductStockValue(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = null
- $getResult : mixed = true
searchProductTags()
public
searchProductTags(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
PaginatorsearchUpStairsExtraShippingByProduct()
public
searchUpStairsExtraShippingByProduct(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : mixed
Parameters
- $data : mixed
- $page : mixed = 0
- $max : mixed = null
- $getResult : mixed = true
update()
Updates an entity
public
update(Entity $entity) : mixed
Parameters
- $entity : Entity
-
The entity to update
Tags
updateSupplierInternalStock()
public
updateSupplierInternalStock(Product $product, int $newQty, string $action, string $msg, User $user) : void
Parameters
getParamsArray()
Get query params list
protected
getParamsArray(Parameter $paramObj) : int
Parameters
- $paramObj : Parameter