Hello!
During one of the last doctrine update, my migrations table has been cleaned out. It only contains the last migrations I have made. Was ok until now as the migrations folder has been also changed (was under src ...
...
POSTGRES_USER: main
POSTGRES_DB: main
ports:
- target: 5432
published: 5432
protocol: tcp
```
// packages/doctrine.yaml
doctrine:
dbal:
url ...
Hey @Med!
Yep! Symfony's security system doesn't care if your User object is loaded via Doctrine ORM, Doctrine ODM or via an alien spaceship ;). So that's good. However, I don't believe that the ODM integrates *that ...
Hey Geoffrey,
Yes, it might be different with different transports. For example, IIRC, Doctrine transport does not allow you to work with binary files because of limitation of MySQL that does not allow storing binary ...
Hey Ryan.
I think I saw the problem but didn't resolve for now. When using a CollectionType in my form, each custom form field defined as entry_type is wrapped into an array. So, when flushing, doctrine says "I want an ...
About mocking model-objects (in my case Doctrine entities): The service which I'm testing makes use of the auto-generated ID of the provided entity. However, the Doctrine entity does not have a setId()-method, so ...
... for someone with a lot of database experience, I *consistently* see that problem with Doctrine: it's super hard to think about classes & objects instead of tables and columns, especially with Doctrine relations ...
... but I'm not sure - I've never tried (http://knpuniversity.com/screencast/doctrine-queries/joins-reduce-queries). Doctrine really wants your User object to always be the same - it would be a little weird if sometimes I ...
... ": "^1.2",
"doctrine/doctrine-migrations-bundle": "^2.0",
"nesbot/carbon": "^2.17",
"symfony/console": "4.3.*",
"symfony/dotenv": "4.3.*",
"symfony/flex": "^1.1",
"symfony ...
... \EventBundle\DataFixtures\ORM\LoadEvents
[Doctrine\ORM\Query\QueryException]
[Syntax Error] line 0, col -1: Error: Expected Literal, got end of string.
[Doctrine\ORM\Query\QueryException]
SELECT u FROM Yoda\UserBundle ...
... work is to use Doctrine Inheritance mapping. It allows you to manage hierarchies. Docs: https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/inheritance-mapping.html#class-table-inheritance
Or, you ...
... /configuration/doctrine.html#doctrine-dbal-configuration for more information. Otherwise, migrations might be generated a bit differently and it might cause generating migration instructions diff continuously on every run. Also ...
... experience already :). Anyways, here is a good README: https://github.com/knpuniversity/doctrine-queries/blob/master/README.md. You don't think you'll need to do the Doctrine database steps - so you can skip those (but ...
... non-ASCII characters, you'll need to build the Content-Disposition header manually, but then it also may not work in all browsers :/. If you want to remove the characters, https://github.com/doctrine/inflector/blob ...
... before MySql, so I would like to know if it's possibile to use PostgreSql with Symfony/Docrine.
Symfony doesn't care about which DB engine you use, but Doctrine does. I'm not sure if Doctrine supports Postgres but you ...
... password: YES).
This is my configuration file for doctrine.
app/config/packages/doctrine.yml:
`
parameters:
database_host: localhost
database_name: article_data
database_user: root
database_password ...
Hey Tomasz N.!
So... this is likely a bug in the MsSQL driver inside Doctrine. I don't know for sure, but I had a Doctrine guy look at this, and, at first glance, what you're trying to do seems reasonable and we don't ...
... something up recently, which caused maker bundle to be set at an earlier version. I've just fixed that.
About the doctrine/migrations issue, you have the correct fix (thanks for sharing). We'll be adding a note or fix ...
...
[Doctrine\DBAL\Exception\ConnectionException]
An exception occured in driver: SQLSTATE[HY000] [2002] Connection refused
... Doctrine is probably trying to convert an array (that was set on an entity by Alice) into a string while saving. I would remove the alice lines one-by-one until this error goes away (like you were doing). When you ...
2726
Doctrine
Filter Results