2725 search results for Doctrine

31 lines | config/packages/doctrine.yaml
// ... lines 1 - 7
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
// ... lines 13 - 31
See Code Block in Script
34 lines | src/DataFixtures/BaseFixture.php
// ... lines 1 - 5
use Doctrine\Common\Persistence\ObjectManager;
abstract class BaseFixture extends Fixture
{
/** @var ObjectManager */
private $manager;
// ... lines 12 - 32
}
See Code Block in Script
50 lines | src/DataFixtures/ArticleFixtures.php
// ... lines 1 - 4
use App\Entity\Article;
use Doctrine\Common\Persistence\ObjectManager;
class ArticleFixtures extends BaseFixture
{
// ... lines 10 - 48
}
See Code Block in Script
22 lines | src/DataFixtures/BaseFixture.php
// ... lines 1 - 2
namespace App\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture;
// ... lines 6 - 7
abstract class BaseFixture extends Fixture
{
// ... lines 10 - 20
}
See Code Block in Script
93 lines | src/Entity/Article.php
// ... lines 1 - 4
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\ArticleRepository")
*/
class Article
{
// ... lines 12 - 91
}
See Code Block in Script
80 lines | src/AppBundle/Entity/GenusNote.php
// ... lines 1 - 2
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
// ... lines 6 - 10
class GenusNote
{
// ... lines 13 - 78
}
See Code Block in Script
56 lines | app/AppKernel.php
// ... lines 1 - 5
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ... lines 11 - 20
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
// ... lines 22 - 23
);
// ... lines 25 - 33
}
// ... lines 35 - 54
}
See Code Block in Script
129 lines | features/bootstrap/FeatureContext.php
// ... lines 1 - 120
/**
* @return \Doctrine\ORM\EntityManager
*/
private function getEntityManager()
{
return $this->getContainer()->get('doctrine.orm.entity_manager');
}
// ... lines 128 - 129
See Code Block in Script
84 lines | features/bootstrap/FeatureContext.php
// ... lines 1 - 32
public function clearData()
{
$purger = new ORMPurger($this->getContainer()->get('doctrine')->getManager());
// ... line 36
}
// ... lines 38 - 84
See Code Block in Script
97 lines | composer.json
{
// ... lines 2 - 4
"require": {
// ... lines 6 - 8
"babdev/pagerfanta-bundle": "^4.0",
// ... lines 10 - 13
"pagerfanta/doctrine-orm-adapter": "^4.0",
"pagerfanta/twig": "^4.0",
// ... lines 16 - 31
},
// ... lines 33 - 95
}
See Code Block in Script
49 lines | config/packages/doctrine.yaml
// ... lines 1 - 23
when@test:
doctrine:
dbal:
# "TEST_TOKEN" is typically set by ParaTest
dbname_suffix: '_test%env(default::TEST_TOKEN)%'
// ... lines 29 - 49
See Code Block in Script
// ... lines 1 - 2
namespace AppBundle\Repository;
use Doctrine\ORM\EntityRepository;
class GenusRepository extends EntityRepository
{
}
See Code Block in Script
103 lines | src/Entity/Category.php
// ... lines 1 - 7
use Doctrine\Common\Collections\Criteria;
// ... lines 9 - 11
class Category
{
// ... lines 14 - 64
public function getFortuneCookiesStillInProduction(): Collection
{
$criteria = Criteria::create()
// ... lines 68 - 70
}
// ... lines 72 - 101
}
See Code Block in Script
113 lines | src/Repository/CategoryRepository.php
// ... lines 1 - 7
use Doctrine\ORM\QueryBuilder;
// ... lines 9 - 18
class CategoryRepository extends ServiceEntityRepository
{
// ... lines 21 - 82
private function addFortuneCookieJoinAndSelect(QueryBuilder $qb): QueryBuilder
{
}
// ... lines 87 - 111
}
See Code Block in Script
// ... lines 1 - 6
use Doctrine\ORM\EntityManagerInterface;
// ... lines 8 - 10
class TreasuresAllowedOwnerChangeValidator extends ConstraintValidator
{
public function __construct(private EntityManagerInterface $entityManager)
{
}
// ... lines 16 - 40
}
See Code Block in Script
171 lines | src/Entity/DragonTreasure.php
// ... lines 1 - 6
use ApiPlatform\Doctrine\Orm\Filter\RangeFilter;
// ... lines 8 - 40
class DragonTreasure
{
// ... lines 43 - 62
#[ApiFilter(RangeFilter::class)]
private ?int $value = null;
// ... lines 65 - 169
}
See Code Block in Script
Hi victor , Thanks for response. It was a new entity. No mixing of create/force update. ``` namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use ...
Bhagwandas P.
Bhagwandas P.
Read Full Comment
Blog
Live Stream 8 Live Component JavaScript Internals

... In this week's live stream, we talk the new major Doctrine releases, the UX twig Icon pull request and then dive into the JavaScript internals of the LiveComponents package. This one gets nerdy and deep! Good news ...

Hmmm, it looks good Could you try my response above ? https://knpuniversity.com/screencast/symfony-doctrine/custom-queries#comment-3369635980 ...
MolloKhan
MolloKhan
Read Full Comment
Thanks for the tutorial! How can we do that with doctrine repository as a service in Symfony with autowire? ...
Waleed Gadelkareem
Waleed Gadelkareem
Read Full Comment