Create form entity and repository
[MAILPOET-2639]
This commit is contained in:
committed by
Jack Kitterhing
parent
5baf21a644
commit
5917582f46
21
lib/Form/FormsRepository.php
Normal file
21
lib/Form/FormsRepository.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Form;
|
||||
|
||||
use MailPoet\Doctrine\Repository;
|
||||
use MailPoet\Entities\FormEntity;
|
||||
|
||||
/**
|
||||
* @method FormEntity[] findBy(array $criteria, array $orderBy = null, int $limit = null, int $offset = null)
|
||||
* @method FormEntity[] findAll()
|
||||
* @method FormEntity|null findOneBy(array $criteria, array $orderBy = null)
|
||||
* @method FormEntity|null findOneById(mixed $id)
|
||||
* @method void persist(FormEntity $entity)
|
||||
* @method void remove(FormEntity $entity)
|
||||
*/
|
||||
class FormsRepository extends Repository {
|
||||
protected function getEntityClassName() {
|
||||
return FormEntity::class;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user