2725 search results for Doctrine

22 lines | docker-compose.yml
version: '3'
services:
###> doctrine/doctrine-bundle ###
database:
image: postgres:${POSTGRES_VERSION:-13}-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB:-app}
# You should definitely change the password in production
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}
POSTGRES_USER: ${POSTGRES_USER:-symfony}
volumes:
- db-data:/var/lib/postgresql/data:rw
// ... lines 14 - 22
See Code Block in Script
... ( * nullable=false * ) * */ private $product; The full stack trace (the original one): Doctrine\ORM\ORMInvalidArgumentException: Multiple non-persisted new entities were found through the ...
The ManyToOne Relation

Okay: we have a Question entity and table. We have an Answer entity and table. Yay for us! But what we really want to do is relate an Answer to a Question. To do this... well... forget about Doctrine for a second. Let's ...

8:35
Custom Filter Logic for Entities

... dig further. When we refresh now and go back to that operation... nice! Our filter now has a description! Okay, enough with the documentation: let's get to the part where we actually apply that filter. For a Doctrine ORM ...

8:25
AMQP Internals Exchanges Queues

... We've just changed our messenger configuration to send messages to a cloud-based RabbitMQ instance instead of sending them to Doctrine to be stored in the database. And after we made that change... everything... just ...

8:10
Hey Pawel, First of all, Doctrine has a low level library to interact with DB, see Doctrine DBAL. It's just a wrapper around PDO, which give you some useful benefits. So, instead directly use PDO I'd recommend Doctrine ...
... ", "symfony/framework-bundle": "^4.0", "symfony/lts": "^4@dev", "symfony/yaml": "^4.0", "doctrine/doctrine-bundle": "^1.6", "doctrine/doctrine-migrations-bundle": "^1.2", "doctrine ...
Hi Ryan. You do very nice job :) I have a question ( sorry for my weak english ) about Doctrine and ( Ouch ) MsSql :/ sorry :) system must work on MsSql. On my computer i have MsSql express 2017 + Win10 + php 7.3.2 ...
Tomasz N.
Tomasz N.
Read Full Comment
Hi Petru L., just wanted to add some thoughts: * Doctrine FAQs recommend setting default values using properties: https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/faq.html#how-can-i-add-default ...
... [Doctrine\ORM\Tools\ToolsException ...
None! The whole "setting a property so that Doctrine actually saves" is a bit of a hack. If there were a way to do it, I would prefer to be able to reach into Doctrine directly via some function and say "my User entity ...
weaverryan
weaverryan
Read Full Comment
Hi peons :), Is there a way to change the default behaviour of Doctrine and make it look in another directory than "Entity". I mean I want my enteties Classes in another directory... I tried the mapping options but it ...
Hi there, I am getting this error every time I run $ ./bin/console doctrine:database:create [Doctrine\DBAL\Exception\ConnectionException ...
Hey Victor, Thank you for your reply. Unfortuntaly the configuration above isn't working for me. This is my full config at doctrine.yml: ``` doctrine: dbal: default_connection: default ...
... others :). For the YAML-equivalent of the annotations, check out the first code-block here: http://symfony.com/doc/current/doctrine/associations.html#relationship-mapping-metadata. there's a YAML tab: you can use that ...
weaverryan
weaverryan
Read Full Comment
... direction?). I'm interested in knowing about doctrine behaviors, for example, I use a lot in propel timestampable, softdelete and well of course, i18n I'm not sure how to even begin to work that out on doctrine the ...
jlchafardet
jlchafardet
Read Full Comment
... will be removed in 3.0; use Twig instead. Show context Show trace 21:28:58 n/a The "Symfony\Bridge\Doctrine\Logger\DbalLogger" class implements "Doctrine\DBAL\Logging\SQLLogger" that is deprecated Use {@link \Doctrine ...
... Doctrine query : Doctrine\ORM\Query\QueryException in C:\xampp\htdocs\cauldron_overflow\vendor\doctrine\orm\lib\Doctrine\ORM\Query\QueryException.php (line 49) * * @return QueryException */ public static ...
Nicolas-M
Nicolas-M
Read Full Comment
... Doctrine paginator object. That's an instance of `Doctrine\ORM\Tools\Pagination\Paginator `. B) Use THAT to create an ApiPlatform Paginator object - that is an instance of `ApiPlatform\Core\Bridge\Doctrine\Orm\Paginator ...
weaverryan
weaverryan
Read Full Comment
... /Lesson_3/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/Loader.php. I would check that out... I can't see exactly what that is, because I'm not sure what the precise version is of this library that you're ...
weaverryan
weaverryan
Read Full Comment