2725 search results for Doctrine

// ... lines 1 - 72
/**
* @return EntityManager
*/
private function getEntityManager()
{
return self::$kernel->getContainer()
->get('doctrine')
->getManager();
}
// ... lines 82 - 83
See Code Block in Script
45 lines | app/config/services.yml
// ... lines 1 - 5
services:
// ... lines 7 - 26
# alias to allow this type to be autowired
// ... line 28
Doctrine\ORM\EntityManager: '@doctrine.orm.default_entity_manager'
// ... lines 30 - 45
See Code Block in Script
27 lines | app/config/services.yml
// ... lines 1 - 5
services:
// ... lines 7 - 21
app.doctrine.hash_password_listener:
class: AppBundle\Doctrine\HashPasswordListener
autowire: true
tags:
- { name: doctrine.event_subscriber }
See Code Block in Script
223 lines | src/AppBundle/Entity/User.php
// ... lines 1 - 4
use Doctrine\Common\Collections\ArrayCollection;
// ... lines 6 - 16
class User implements UserInterface
{
// ... lines 19 - 82
public function __construct()
{
$this->studiedGenuses = new ArrayCollection();
}
// ... lines 87 - 221
}
See Code Block in Script
71 lines | src/AppBundle/Entity/GenusScientist.php
// ... lines 1 - 2
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
// ... lines 6 - 10
class GenusScientist
{
// ... lines 13 - 70
}
See Code Block in Script
// ... lines 1 - 2
namespace AppBundle\Repository;
use Doctrine\ORM\EntityRepository;
class UserRepository extends EntityRepository
{
public function createIsScientistQueryBuilder()
{
// ... lines 11 - 13
}
}
See Code Block in Script
78 lines | src/AppBundle/Entity/GenusScientist.php
// ... lines 1 - 5
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
// ... lines 7 - 8
/**
// ... lines 10 - 11
* @UniqueEntity(
* fields={"genus", "user"},
// ... line 14
* )
*/
class GenusScientist
{
// ... lines 19 - 77
}
See Code Block in Script
224 lines | src/AppBundle/Entity/Genus.php
// ... lines 1 - 5
use Doctrine\Common\Collections\Criteria;
// ... lines 7 - 15
class Genus
{
// ... lines 18 - 214
public function getExpertScientists()
{
$criteria = Criteria::create()
// ... lines 218 - 221
}
}
See Code Block in Script
// ... lines 1 - 6
use Doctrine\ORM\EntityManager;
class SubscriptionHelper
{
// ... lines 11 - 13
private $em;
public function __construct(EntityManager $em)
{
$this->em = $em;
// ... lines 19 - 30
}
// ... lines 32 - 61
}
See Code Block in Script
36 lines | src/AppBundle/Entity/StripeEventLog.php
// ... lines 1 - 4
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="stripe_event_log")
*/
class StripeEventLog
{
// ... lines 13 - 34
}
See Code Block in Script
// ... lines 1 - 2
namespace AppBundle\Repository;
// ... lines 4 - 5
use Doctrine\ORM\EntityRepository;
class SubFamilyRepository extends EntityRepository
{
// ... lines 10 - 14
}
See Code Block in Script
31 lines | src/AppBundle/StripeClient.php
// ... lines 1 - 5
use Doctrine\ORM\EntityManager;
class StripeClient
{
private $em;
public function __construct(EntityManager $em)
{
$this->em = $em;
}
// ... lines 16 - 29
}
See Code Block in Script
// ... lines 1 - 2
namespace AppBundle\Repository;
use Doctrine\ORM\EntityRepository;
// ... lines 6 - 12
class MovieRepository extends EntityRepository
{
}
See Code Block in Script
16 lines | src/AppBundle/Entity/MovieRepository.php
// ... lines 1 - 2
namespace AppBundle\Entity;
use Doctrine\ORM\EntityRepository;
// ... lines 6 - 12
class MovieRepository extends EntityRepository
{
}
See Code Block in Script
15 lines | src/AppBundle/Entity/Movie.php
// ... lines 1 - 4
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="movie")
*/
class Movie
{
}
See Code Block in Script
56 lines | src/Controller/ArticleAdminController.php
// ... lines 1 - 5
use Doctrine\ORM\EntityManagerInterface;
// ... lines 7 - 10
class ArticleAdminController extends AbstractController
{
// ... lines 13 - 15
public function new(EntityManagerInterface $em)
{
// ... lines 18 - 53
}
}
See Code Block in Script
81 lines | src/Controller/ArticleController.php
// ... lines 1 - 7
use Doctrine\ORM\EntityManagerInterface;
// ... lines 9 - 15
class ArticleController extends AbstractController
{
// ... lines 18 - 30
public function homepage(EntityManagerInterface $em)
{
// ... lines 33 - 38
}
// ... lines 40 - 79
}
See Code Block in Script
58 lines | src/Repository/ArticleRepository.php
// ... lines 1 - 6
use Doctrine\ORM\QueryBuilder;
// ... lines 8 - 15
class ArticleRepository extends ServiceEntityRepository
{
// ... lines 18 - 52
private function getOrCreateQueryBuilder(QueryBuilder $qb = null)
{
// ... line 55
}
}
See Code Block in Script
54 lines | src/Repository/ArticleRepository.php
// ... lines 1 - 6
use Doctrine\ORM\QueryBuilder;
// ... lines 8 - 15
class ArticleRepository extends ServiceEntityRepository
{
// ... lines 18 - 48
private function addIsPublishedQueryBuilder(QueryBuilder $qb)
{
// ... line 51
}
}
See Code Block in Script
// ... lines 1 - 2
namespace AppBundle\Repository;
// ... lines 4 - 6
use Doctrine\ORM\EntityRepository;
class GenusNoteRepository extends EntityRepository
{
// ... lines 11 - 20
}
See Code Block in Script