ImageRepository
class ImageRepository extends EntityRepository
Class ImageRepository is injected as alligator.image_repository service. ImageRepository is used for crud operation for managed entity.
Use this class to work with database.
Constants
| ALIAS |
Alias for image |
| PRODUCT_ALIAS |
Alias for product |
Methods
Get image reference
Find all images
Find all products images without thumbnails
Find images for provided array
Delete image
Delete array of images
Delete array of images
Edit array of images
Save to file and persist images
Find images for provided array of ids
Find all images for provided array of erp codes
CHeck if image with specific code exists
Get repository instance for specific class
Details
at line 58
Image
getImageReference(int $id)
Get image reference
at line 67
array
getAllImages()
Find all images
at line 76
array
findAllProductImages()
Find all products images without thumbnails
at line 92
array
getImagesFromGroup(array $array)
Find images for provided array
at line 120
mixed
deleteImage(int $imageId)
Delete image
at line 138
deleteImagesByPk(array $images)
Delete array of images
at line 158
array
deleteImagesByObject(array $images)
Delete array of images
at line 213
updateMultipleImages(array $images)
Edit array of images
at line 238
ArrayCollection
saveImagesForBlogPost(ArrayCollection $images)
Save to file and persist images
at line 255
array
getImagesArray(array $ids)
Find images for provided array of ids
at line 269
array
getAllProductImagesIdsForRemove(array $erpImages)
Find all images for provided array of erp codes
at line 289
bool
codeExists(int $id)
CHeck if image with specific code exists
at line 303
ObjectRepository|EntityRepository
getOtherRepository(string $class)
Get repository instance for specific class