Collection.php 729 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Search\Model\ResourceModel\SynonymGroup;
  7. /**
  8. * Collection for SynonymGroup
  9. * @api
  10. * @since 100.1.0
  11. */
  12. class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
  13. {
  14. /**
  15. * @var string
  16. * @since 100.1.0
  17. */
  18. protected $_idFieldName = 'group_id';
  19. /**
  20. * Define resource model
  21. *
  22. * @return void
  23. * @since 100.1.0
  24. */
  25. protected function _construct()
  26. {
  27. $this->_init(
  28. \Magento\Search\Model\SynonymGroup::class,
  29. \Magento\Search\Model\ResourceModel\SynonymGroup::class
  30. );
  31. }
  32. }