1000 search results

288 lines | src/Entity/User.php
// ... lines 1 - 7
use App\Doctrine\UserSetIsMvpListener;
// ... lines 9 - 41
class User implements UserInterface
{
// ... lines 44 - 286
}
See Code Block in Script
55 lines | config/services.yaml
// ... lines 1 - 7
services:
// ... lines 9 - 39
App\Doctrine\UserSetIsMvpListener:
tags: [doctrine.orm.entity_listener]
// ... lines 42 - 55
See Code Block in Script
Solution : Downgrade doctrine/common from 3.0 to 2.7 `composer require doctrine/common:^2.7 --update-with-dependencies` Source : https://github.com/stof/StofDoctrineExtensionsBundle/issues/413
Deplaine N.
Deplaine N.
Read Full Comment
hi MolloKhan I removed doctrine/cache library and it worked! yeahhhh!! I hope I won't have any problem after that! Thanks for your help! Cheers, Val
Valgritim
Valgritim
Read Full Comment
Hey Valgritim Try updating Doctrine dependencies first. Run ``` composer upgrade "doctrine/*" --with-dependencies``` Let me know if it worked. Cheers!
MolloKhan
MolloKhan
Read Full Comment
So basically migrations for doctrine serve just as a speed up process of doctrine update, since the entities changes are already in the version control system. But I assume figuring out each time ORM entities changes compared to database is much more computational consuming especially…
103 lines | composer.json
{
// ... lines 2 - 3
"require": {
// ... lines 5 - 20
"stof/doctrine-extensions-bundle": "^1.3",
// ... lines 22 - 42
},
// ... lines 44 - 101
}
See Code Block in Script
105 lines | composer.json
{
// ... lines 2 - 45
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.0",
// ... lines 48 - 54
},
// ... lines 56 - 103
}
See Code Block in Script
If you see `doctrine/annotations v1.8.0` then you got the newest code. About DoctrineBundle version, I'm not sure to be honest but if it's not working, you can try upgrading it to version 2 or just tweak the type-hint as…
MolloKhan
MolloKhan
Read Full Comment
209 lines | src/Entity/CheeseListing.php
// ... lines 1 - 17
/**
// ... lines 19 - 47
* @ORM\EntityListeners({"App\Doctrine\CheeseListingSetOwnerListener"})
*/
class CheeseListing
// ... lines 51 - 209
See Code Block in Script
43 lines | config/services.yaml
// ... lines 1 - 8
services:
// ... lines 10 - 41
App\Doctrine\CheeseListingSetOwnerListener:
tags: [doctrine.orm.entity_listener]
See Code Block in Script
// ... lines 1 - 4
use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryCollectionExtensionInterface;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
use Doctrine\ORM\QueryBuilder;
// ... line 8
class CheeseListingIsPublishedExtension implements QueryCollectionExtensionInterface
{
public function applyToCollection(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null)
{
}
}
See Code Block in Script
// ... lines 1 - 5
use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryItemExtensionInterface;
// ... lines 7 - 11
class CheeseListingIsPublishedExtension implements QueryCollectionExtensionInterface, QueryItemExtensionInterface
{
// ... lines 14 - 25
public function applyToItem(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, array $identifiers, string $operationName = null, array $context = [])
{
// ... line 28
}
// ... lines 30 - 44
}
See Code Block in Script
Do you have a doctrine listener or a datapersister where you do somthing like: `$entityManager->detach($entity);` ?
20 lines | config/packages/messenger.yaml
framework:
messenger:
// ... lines 3 - 5
transports:
// ... lines 7 - 12
failed: 'doctrine://default?queue_name=failed'
// ... lines 14 - 20
See Code Block in Script
142 lines | src/Entity/User.php
// ... lines 1 - 6
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
// ... lines 8 - 11
/**
// ... lines 13 - 16
* @UniqueEntity(fields={"username"})
* @UniqueEntity(fields={"email"})
// ... line 19
*/
class User implements UserInterface
// ... lines 22 - 142
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
146 lines | src/Entity/CheeseListing.php
// ... lines 1 - 6
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\BooleanFilter;
// ... lines 8 - 146
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
Hey Gballocc7 Doctrine is expecting an entity object instead of an ID. Do that change and try again :) Cheers!
MolloKhan
MolloKhan
Read Full Comment