PHP Interface Sonata\Component\Order\OrderManagerInterface

Inheritance: extends Sonata\CoreBundle\Model\ManagerInterface, extends Sonata\CoreBundle\Model\PageableManagerInterface
Show file Open project: sonata-project/ecommerce Interface Usage Examples

Public Methods

Method Description
findForUser ( Sonata\UserBundle\Model\UserInterface $user, array $orderBy = [], integer | null $limit = null, integer | null $offset = null ) : Sonata\Component\Order\OrderInterface[] Finds orders belonging to given user.
getOrder ( integer $orderId ) : Sonata\Component\Order\OrderInterface Return an Order from its id with its related OrderElements.

Method Details

findForUser() public method

Finds orders belonging to given user.
public findForUser ( Sonata\UserBundle\Model\UserInterface $user, array $orderBy = [], integer | null $limit = null, integer | null $offset = null ) : Sonata\Component\Order\OrderInterface[]
$user Sonata\UserBundle\Model\UserInterface
$orderBy array
$limit integer | null
$offset integer | null
return Sonata\Component\Order\OrderInterface[]

getOrder() public method

Return an Order from its id with its related OrderElements.
public getOrder ( integer $orderId ) : Sonata\Component\Order\OrderInterface
$orderId integer
return Sonata\Component\Order\OrderInterface