I installed a blank project (3.3) with the symfony installer (and added doctrine/doctrine-cache-bundle) and then went through the exact same steps and registration works as expected, the user is added to the database ...
... I'm still getting this same error and I've checked against the downloaded project files and couldn't find a typo. I found a mention of a solution by way of XML files (something about Doctrine ignoring the annotation for ...
...
fortuneCookie_{1..10}:
category_id: '@category_*'
fortune:
createdAt:
numberPrinted:
discontinued:
```
here is my LoadFixture.php
```
namespace AppBundle\DataFixtures\ORM;
use Doctrine\Common ...
... within form field live search pops up and doctrine is catching the most suitable entries. Now if entry is clicked the hidden form field is filled with the new id.
After submitting the form doctrine catch up the entity ...
Hello , been having a bit of an issue with grouping ? Seems doctrine is very fussy about grouping these queries. Need a way to group a bunch of orWhere ? Found this syntax on SO but guess it's not up to date anymore for ...
... Hey @Hunte!
I'm pretty sure I just replied to you via email, but for others, here's the short answer:
1) Delete one of the use statements - you should only have `use Doctrine\ORM\Mapping as ORM;`
2) Make sure all of ...
... Fundamentals: Bundles, Configuration & Environments - beginner
- Symfony: Doctrine & the Database - intermediate
- Mastering Doctrine Relationships in Symfony - advanced
- Symfony: Level up with Services and the ...
On the bottom of page 2, i'm trying to load the fixtures but it returns this error:
[Doctrine\DBAL\Exception\UniqueConstraintViolationException]
An exception occurred while executing 'INSERT INTO user (email) VALUES ...
...
[Doctrine\DBAL\Exception\ConnectionException]
An exception occured in driver: SQLSTATE[HY000] [2002] No such file or dire
ctory ...
Hey Max!
Another cool question :). So Doctrine uses prepared statements to make the queries (which everyone should do, no matter what libs you're using, as it prevents SQL injection attacks). This means that Doctrine ...
I had tried the cache:clear, but it didn't seem to do anything, i tried removing the User Entity but still the same problem , in fact doctrine did not remove the table, it said:
[Doctrine\Common\Persistence\Mapping ...
... through Doctrine. In fact, in some cases, this might be the best idea. We talk about how to do that here: http://knpuniversity.com/screencast/doctrine-queries/raw-sql-queries
Cheers!
Hey @Eric-N!
Good question! This tutorial is all about Doctrine, but we are absolutely working inside of Symfony. So the directory structure, bin/console commands (e.g. to generate migrations), and more will not ...
Hey |mention:61127| ,
We do have a new tutorial - it's in the finish phase before we start releasing it: https://symfonycasts.com/screencast/doctrine-queries - you can subscribe to it and we will notify you when it ...
Hi, I get the following error, but I have the pgsql driver in my php ini activated:
```
Doctrine\DBAL\Exception\DriverException in D:\code-symfony-fundamentals\start\vendor\doctrine\dbal\src\Driver\API\PostgreSQL ...
... doctrine issue which gives unexpected results when using Max Results on a fetch-joined collection. They have now added a Paginator for DQL queries in doctrine 2.2 and I was just wondering if there are any plans for the ...
Hey Gary,
Ah, it might be so, yes. I mean, we do not constrain the PHP version in our composer.json, but it seems like a thord-party dependency like Doctrine you mentioned does this. Yeah, it sounds like you have to ...
often I DO just live with the N+1 problem
What?? I am a bit too obsessive-compulsive for that :-) seriously though --- I have created an ambitious Doctrine project and it works brilliantly, but there were a few ...
... how Doctrine works. When you make the PUT request, you are modifying the User entity. That is no problem... unless someone calls `$entityManager->flush()`. If that happens, Doctrine will save ALL entities that it's ...
... query(queries) that will be executed. You will see that some queries will add indexes. Or, use Doctrine migrations :)
But if you want to add more indexes (custom indexes) for your custom columns - you can totally do it ...
2725
Doctrine
Filter Results