Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code_samples/api/commerce/src/Command/CartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$cartsList = $this->cartService->findCarts($cartQuery);

$cartsList->getCarts(); // array of CartInterface objects
$cartsList->getTotalCount(); // number of returned carts
$cartsList->getTotalCount(); // number of matching carts regardless of the limit

foreach ($cartsList as $cart) {
$output->writeln($cart->getIdentifier() . ': ' . $cart->getName());
Expand Down
Loading