2709 search results for Doctrine

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 ...

... - Root composer.json requires php ^7.1.3 but your php version (8.3.2) does not satisfy that requirement. Problem 2 - doctrine/annotations is locked to version 1.10.1 and an update of this package was not ...
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
I use MySQL Ver 14.14 Distrib 5.7.16, for Linux (x86_64) using EditLine wrapper and doctrine/dbal v2.5.5. Cheers. ...
If anyone has problems with composer install, because of doctrines ArrayCache -> set "doctrine/orm" to "2.8.5" or less in composer.json ...
... Hi, there's any news about the next Doctrine tutorial? Thanks a lot Weave Ryan for those amazing series (y).
Hey excentrist! I'm shooting for January - I definitely want to get the Doctrine relations tutorial out! Cheers! ...
weaverryan
weaverryan
Read Full Comment
Hey Remy, I replied with my thoughts about this difference here: https://symfonycasts.com/screencast/symfony-doctrine/timestampable#comment-28049 Cheers! ...
Offtopic: When I do 'symfony console make:migration' it says: This behaviour is (currently) not supported by Doctrine 2. ...
Oh, I think you only have to update the "doctrine/data-fixtures" library and it should do the trick ...
MolloKhan
MolloKhan
Read Full Comment
Do you have a doctrine listener or a datapersister where you do somthing like: `$entityManager->detach($entity);` ? ...