Skip to content

Commit

Permalink
fix lockservice
Browse files Browse the repository at this point in the history
allow assets in listings
  • Loading branch information
rliebi committed Dec 3, 2024
1 parent 53e4a9e commit c5d658d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Document/AbstractDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function treatObjectVariantsAsDocuments(): bool
return false;
}

public function getListingInstance(IndexInterface $index): Listing|PimcoreDocument\Listing
public function getListingInstance(IndexInterface $index): Listing|PimcoreDocument\Listing|Asset\Listing
{
/** @var class-string<Listing> $listingClass */
$listingClass = $this->getListingClass();
Expand Down
3 changes: 2 additions & 1 deletion src/Document/DocumentInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Valantic\ElasticaBridgeBundle\Document;

use Pimcore\Model\Asset;
use Pimcore\Model\DataObject\Listing;
use Pimcore\Model\Document as PimcoreDocument;
use Pimcore\Model\Element\AbstractElement;
Expand Down Expand Up @@ -93,7 +94,7 @@ public function shouldIndex(AbstractElement $element): bool;
/**
* @see ListingTrait
*/
public function getListingInstance(IndexInterface $index): Listing|PimcoreDocument\Listing;
public function getListingInstance(IndexInterface $index): Listing|PimcoreDocument\Listing|Asset\Listing;

/**
* Whether Elasticsearch documents should be created for object variants.
Expand Down

0 comments on commit c5d658d

Please sign in to comment.