Add SettingEntity and SettingsRepository
[MAILPOET-2436]
This commit is contained in:
committed by
Jack Kitterhing
parent
388ced8b53
commit
0d04df570c
20
lib/Settings/SettingsRepository.php
Normal file
20
lib/Settings/SettingsRepository.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Settings;
|
||||
|
||||
use MailPoet\Doctrine\Repository;
|
||||
use MailPoet\Entities\SettingEntity;
|
||||
|
||||
/**
|
||||
* @method SettingEntity[] findBy(array $criteria, array $order_by = null, int $limit = null, int $offset = null)
|
||||
* @method SettingEntity|null findOneBy(array $criteria, array $order_by = null)
|
||||
* @method SettingEntity|null findOneById(mixed $id)
|
||||
* @method SettingEntity[] findAll()
|
||||
* @method void persist(SettingEntity $entity)
|
||||
* @method void remove(SettingEntity $entity)
|
||||
*/
|
||||
class SettingsRepository extends Repository {
|
||||
protected function getEntityClassName() {
|
||||
return SettingEntity::class;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user