2725 search results for Doctrine

... I can't run the bin/console doctrine:schema:update --dump-sql without getting an error: Compile Error: Cannot use Doctrine\ORM\Mapping as ORM because the name is already in use This is because I am using the following ...
Hey Daniyal, We don't focus too much on how to create relationships in this tutorial because this tutorial is about a different topic, specifically, how to work with Doctrine queries. So here we're mostly working on ...
Just an info, this dialog seems to be new when installing doctrine via composer: Symfony operations: 3 recipes (d1677be98e0980609549e3b67c08b1cb) - WARNING doctrine/doctrine-cache-bundle (>=1.3): From github.com ...
When trying to install doctrine-fixtures-bundle I get an error. I'm with Symfony version 3.1.10 and I need to install it adding "^2.0.0" like this: composer require --dev "doctrine/doctrine-fixtures-bundle:^2.0.0" Hope that helps someone! Cheers! ...
Lluís Puig Ferrer
Lluís Puig Ferrer
Read Full Comment
... Hmm, ok, let's try this: First, remove entirely your vendor's directory and the doctrine-migrations-bundle entry in your composer.json Then, run `composer install` -> `composer update` -> `composer require doctrine/doctrine-migrations-bundle` I believe it will do the trick ;)
MolloKhan
MolloKhan
Read Full Comment
More info: In my LoadUser.php When I installed composer with --no-dev the namespaces next are wrong, because not exits Doctrine\Common\DataFixtures. use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; ...
JuanLuisGarciaBorrego
JuanLuisGarciaBorrego
Read Full Comment
... I don't use the Symfony binary (I use DDEV), but I think it should read "symfony console doctrine:[...]" instead of "symfony binary doctrine:[...]" in the script of the 'Creating the database' section of the two console instructions for Doctrine.
In case anyone didn't notice, and you're on Symfony 2.2.*, you need to add "doctrine/doctrine-fixtures-bundle": "dev-master" to your composer.json and new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle() to your bundles to use the fixtures. ...
Hello again, installing doctrine-fixture-bundle v2.4 with the cmd: ` composer require --dev doctrine/doctrine-fixtures-bundle 2.4 ` worked for me. But I am still interested in how I can get the more recent version of orm-fixtures-bundle ...
AndTheGodsMadeLove
AndTheGodsMadeLove
Read Full Comment
// ... 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
105 lines | composer.json
{
// ... lines 2 - 3
"require": {
// ... lines 5 - 8
"doctrine/doctrine-bundle": "^2.0",
// ... lines 10 - 44
},
// ... lines 46 - 103
}
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
81 lines | composer.json
{
// ... lines 2 - 42
"require-dev": {
// ... lines 44 - 45
"doctrine/doctrine-fixtures-bundle": "^3.0"
},
// ... lines 48 - 79
}
See Code Block in Script
65 lines | composer.json
{
// ... lines 2 - 17
"require": {
// ... lines 19 - 22
"doctrine/doctrine-cache-bundle": "^1.2",
// ... lines 24 - 62
}
}
See Code Block in Script
76 lines | app/config/config.yml
// ... lines 1 - 46
doctrine:
// ... lines 48 - 62
orm:
// ... lines 64 - 65
filters:
fortune_cookie_discontinued: AppBundle\Doctrine\DiscontinuedFilter
// ... lines 68 - 76
See Code Block in Script
47 lines | config/packages/doctrine.yaml
doctrine:
// ... lines 2 - 7
orm:
// ... lines 9 - 18
filters:
fortuneCookie_discontinued: App\Doctrine\DiscontinuedFilter
// ... lines 21 - 47
See Code Block in Script
... ApiPlatform\Core\Serializer\Filter\PropertyFilter; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Symfony\Bridge\Doctrine\Validator\Constraints ...
MolloKhan
MolloKhan
Read Full Comment
Ok so apparently doctrine cache has been deprecated. https://github.com/doctrine/cache/issues/354, So tried installing an older cache library to make it work. You will need to install this version of Doctrine cache ...
shirleenkneppers
shirleenkneppers
Read Full Comment
Hey Brandon The problem is that you are passing the jobsId instead of the jobs object. Thanks to Doctrine, your entities work with objects instead of raw id's You may want to watch this two courses about Doctrine so ...
MolloKhan
MolloKhan
Read Full Comment
... doctrine \n doctrine:cache \n doctrine:database \n ...
Евгений Явгель
Евгений Явгель
Read Full Comment