WishlistRepository
class WishlistRepository extends EntityRepository
Class WishlistRepository is injected as empire_wishlists_plugin.wishlist_repository service. WishlistRepository is used for crud operation for entity.
Use this class to work with database.
Constants
| ALIAS |
Alias for main entity |
| USER_ALIAS |
Alias for user entity |
| PRODUCT_ALIAS |
Alias for product entity |
Methods
array
getWishlistsForUser(int $userId)
Get all Wishlists for specified user
array
getWishlistsUserForModal(int $userId)
Get id and name of wishlist for specified user
array
getUsersWithProductInWishList(int $productId, Pricelist|null $priceList = null)
Get emails for all user who hava specified product in wishlist
mixed
getReference(int $id, string $class = Wishlist::class)
Get reference to class
Details
at line 69
boolean
delete(Wishlist $object)
Delete single wishlist
at line 87
array
getWishlistsForUser(int $userId)
Get all Wishlists for specified user
at line 104
array
getWishlistsUserForModal(int $userId)
Get id and name of wishlist for specified user
at line 121
array
getUsersWithProductInWishList(int $productId, Pricelist|null $priceList = null)
Get emails for all user who hava specified product in wishlist
at line 148
mixed
getReference(int $id, string $class = Wishlist::class)
Get reference to class