2709 search results for Doctrine

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 ...
weaverryan
weaverryan
Read Full Comment
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 ...
Dizzy Bryan High
Dizzy Bryan High
Read Full Comment
... 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!
weaverryan
weaverryan
Read Full Comment
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 ...
weaverryan
weaverryan
Read Full Comment
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 ...
davidmintz
davidmintz
Read Full Comment
... 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 ...
weaverryan
weaverryan
Read Full Comment
... 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 ...
... missing "serverVersion" configuration. This is normally (but not always) configured as a ?serverVersion= on the end of your DATABASE_URL - for example https://github.com/symfony/recipes/blob/a0d7f5a333679bfe3acfb01d985cf0c29dee81e8/doctrine/doctrine-bundle/2.4/manifest.json#L15 Cheers!
weaverryan
weaverryan
Read Full Comment
... covered in https://symfonycasts.com/screencast/doctrine-relations (which at this moment, is still being released - https://symfonycasts.com/screencast/symfony4-doctrine-relations is an almost-identical version for Symfony ...
weaverryan
weaverryan
Read Full Comment
Hi, I had the same error so i tried Martin's solution, and then the error transformed into "An exception occurred in driver: SQLSTATE[HY000] [2002] connection refused by the computer". So, i went into "vendor\doctrine ...
Vandilour
Vandilour
Read Full Comment
... ` - it's in this code block - https://symfonycasts.com/screencast/symfony-doctrine/fixtures#codeblock-e8f469f223 - but we fix it in the very next code block: > The only problem now is that we don't have an $entityManager ...
weaverryan
weaverryan
Read Full Comment
... the following error; Class "App\Entity\Account" is not a valid entity or mapped super class. As I know, this is because of doctrine ORM. But my question is I don't need doctrine, as I am using DynamoDB for my database. Is there a way I can work around this issue ? Thanks.
Chamal P.
Chamal P.
Read Full Comment
Hi team! I love this way of caching items! In the video you set up a cache on the user_activity_text, referenced by the user ID. You invalidate this cache after 3600 seconds. Couldn't we instead create a Doctrine ...
... render that form, and how to read/write those values. But you will still need to think about how to store that non-doctrine object, probably you will need to use a serialization or json encode for that field - Doctrine has corresponding field types for this. Cheers!
... Doctrine\DBAL\Exception\ DriverException Doctrine\DBAL\Driver\PDO\ Exception could not find driver PDOException could not find driver I have the database on the docker because I did not install mysql locally but I ...
Assist software
Assist software
Read Full Comment
... some of the versions of my libraries (from the code download) are different than your version - for example "doctrine/persistence" (which is related to your error) is 1.1.0 in your pastebin but is 1.3.7 in both the ...
weaverryan
weaverryan
Read Full Comment