2725 search results for Doctrine

54 lines | src/Repository/QuestionRepository.php
// ... lines 1 - 6
use Doctrine\ORM\QueryBuilder;
// ... lines 8 - 15
class QuestionRepository extends ServiceEntityRepository
{
// ... lines 18 - 36
private function addIsAskedQueryBuilder(QueryBuilder $qb): QueryBuilder
{
// ... line 39
}
// ... lines 41 - 52
}
See Code Block in Script
93 lines | src/Controller/QuestionController.php
// ... lines 1 - 6
use Doctrine\ORM\EntityManagerInterface;
// ... lines 8 - 12
class QuestionController extends AbstractController
{
// ... lines 15 - 35
public function new(EntityManagerInterface $entityManager)
{
// ... lines 38 - 65
}
// ... lines 67 - 91
}
See Code Block in Script
51 lines | src/Repository/ApiTokenRepository.php
// ... lines 1 - 6
use Doctrine\Persistence\ManagerRegistry;
// ... lines 8 - 14
class ApiTokenRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
// ... line 19
}
// ... lines 21 - 49
}
See Code Block in Script
75 lines | src/Repository/ArticleRepository.php
// ... lines 1 - 8
use Doctrine\Persistence\ManagerRegistry;
// ... lines 10 - 16
class ArticleRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
// ... line 21
}
// ... lines 23 - 73
}
See Code Block in Script
82 lines | src/Repository/CommentRepository.php
// ... lines 1 - 8
use Doctrine\Persistence\ManagerRegistry;
// ... lines 10 - 17
class CommentRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
// ... line 22
}
// ... lines 24 - 80
}
See Code Block in Script
51 lines | src/Repository/TagRepository.php
// ... lines 1 - 6
use Doctrine\Persistence\ManagerRegistry;
// ... lines 8 - 14
class TagRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
// ... line 19
}
// ... lines 21 - 49
}
See Code Block in Script
87 lines | src/Repository/UserRepository.php
// ... lines 1 - 6
use Doctrine\Persistence\ManagerRegistry;
// ... lines 8 - 14
class UserRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
// ... line 19
}
// ... lines 21 - 85
}
See Code Block in Script
53 lines | src/Test/CustomApiTestCase.php
// ... lines 1 - 9
class CustomApiTestCase extends ApiTestCase
{
// ... lines 12 - 48
protected function getEntityManager(): EntityManagerInterface
{
return self::$container->get('doctrine')->getManager();
}
}
See Code Block in Script
// ... lines 1 - 9
public function testCreateCheeseListing()
{
// ... lines 12 - 23
$em = self::$container->get('doctrine')->getManager();
$em->persist($user);
$em->flush();
// ... lines 27 - 35
}
// ... lines 37 - 38
See Code Block in Script
67 lines | src/Repository/ArticleRepository.php
// ... lines 1 - 6
use Doctrine\Common\Collections\Criteria;
// ... lines 8 - 16
class ArticleRepository extends ServiceEntityRepository
{
// ... lines 19 - 35
public static function createNonDeletedCriteria(): Criteria
{
// ... lines 38 - 41
}
// ... lines 43 - 65
}
See Code Block in Script
150 lines | src/Entity/CheeseListing.php
// ... lines 1 - 7
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\RangeFilter;
// ... lines 9 - 14
/**
* @ApiResource(
// ... lines 17 - 27
* @ApiFilter(RangeFilter::class, properties={"price"})
// ... line 29
*/
class CheeseListing
// ... lines 32 - 150
See Code Block in Script
148 lines | src/Entity/CheeseListing.php
// ... lines 1 - 7
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
// ... lines 9 - 13
/**
// ... lines 15 - 25
* @ApiFilter(SearchFilter::class, properties={"title": "partial"})
// ... line 27
*/
class CheeseListing
// ... lines 30 - 148
See Code Block in Script
// ... lines 1 - 2
namespace App\Controller;
use Doctrine\DBAL\Connection;
class Issue27901Controller
{
public function test(Connection $connection)
{
// ... lines 11 - 12
}
}
See Code Block in Script
80 lines | src/DataFixtures/ArticleFixtures.php
// ... lines 1 - 7
use Doctrine\Common\DataFixtures\DependentFixtureInterface;
// ... lines 9 - 10
class ArticleFixtures extends BaseFixture implements DependentFixtureInterface
{
// ... lines 13 - 78
}
See Code Block in Script
202 lines | src/Entity/Article.php
// ... lines 1 - 4
use Doctrine\Common\Collections\ArrayCollection;
// ... lines 6 - 13
class Article
{
// ... lines 16 - 65
public function __construct()
{
$this->comments = new ArrayCollection();
}
// ... lines 70 - 200
}
See Code Block in Script
17 lines | src/DataFixtures/CommentFixture.php
// ... lines 1 - 4
use Doctrine\Common\Persistence\ObjectManager;
class CommentFixture extends BaseFixture
{
protected function loadData(ObjectManager $manager)
{
// ... lines 11 - 14
}
}
See Code Block in Script
217 lines | src/Entity/Article.php
// ... lines 1 - 6
use Doctrine\Common\Collections\Criteria;
// ... lines 8 - 14
class Article
{
// ... lines 17 - 183
public function getNonDeletedComments(): Collection
{
$criteria = Criteria::create()
// ... lines 187 - 191
}
// ... lines 193 - 215
}
See Code Block in Script
32 lines | src/DataFixtures/A0CommentFixture.php
// ... lines 1 - 6
use Doctrine\Common\DataFixtures\DependentFixtureInterface;
// ... lines 8 - 9
class A0CommentFixture extends BaseFixture implements DependentFixtureInterface
{
// ... lines 12 - 30
}
See Code Block in Script
// ... lines 1 - 12
public function testItBuildsEnclosureWithDefaultSpecifications()
{
// ... lines 15 - 21
/** @var EntityManager $em */
$em = self::$kernel->getContainer()
->get('doctrine')
->getManager();
// ... lines 26 - 41
}
// ... lines 43 - 44
See Code Block in Script
55 lines | app/AppKernel.php
// ... lines 1 - 5
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ... lines 11 - 19
new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
// ... lines 21 - 22
);
// ... lines 24 - 32
}
// ... lines 34 - 53
}
See Code Block in Script