Squelette Symfony, entités Server et Action
This commit is contained in:
commit
52ecb4204c
46 changed files with 4308 additions and 0 deletions
28
src/Repository/ServerAccessRepository.php
Normal file
28
src/Repository/ServerAccessRepository.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\ServerAccess;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
|
||||
/**
|
||||
* @class ServerAccessRepository
|
||||
* @brief Repository pour la gestion des acces operateurs aux serveurs
|
||||
*
|
||||
* Utilise principalement findOneBy(['server' => ..., 'user' => ...])
|
||||
* pour verifier si un acces existe deja avant d'en creer un nouveau.
|
||||
*
|
||||
* @extends ServiceEntityRepository<ServerAccess>
|
||||
*/
|
||||
class ServerAccessRepository extends ServiceEntityRepository
|
||||
{
|
||||
/**
|
||||
* @brief Constructeur standard du repository Doctrine
|
||||
* @param ManagerRegistry $registry
|
||||
*/
|
||||
public function __construct(ManagerRegistry $registry)
|
||||
{
|
||||
parent::__construct($registry, ServerAccess::class);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue