... and I check the Ajax request, and then the form (symphony debug toolbar), the input file is empty, so I guess that's probably why vich doctrine listener doesn't work. If you code or anything else tell me
And everything works fine without using Ajax.
Yo bblue
Great question! The answer is, yes! Well, actually, the answer is: "it depends", but in this case yes. So, the Doctrine library exposes some classes that help read annotations. If you use them directly, it's ...
... bundle name always works.
Btw, if you're curious, here is the file Symfony looks for to load the configuration tree: https://github.com/doctrine/DoctrineCacheBundle/blob/master/DependencyInjection/Configuration.php
Cheers!
... have a course about internationalization? How to translate my hard coded stuff (like headers), my form labels, my Doctrine fields but also my settings on the site like date format and thousand seperator?
The docs are ...
... you didn't teach how to build a login with a connection of database?
what about this
Assetic
Bundles
Console
Databases (Doctrine ORM)
Debug
Deployment
Email
Event Dispatcher
Expressions
Forms
Front-end
HTTP Cache ...
Yo Mike!
Hmm, is your @ORM\Column a type="date" or type="datetime"? If it's "date", change it to "datetime": our form is correctly submitting a DateTime with time, but then Doctrine is saving only the date part.
I'm ...
Yo Max!
This is a good find, and a pretty common - sometimes annoying "feature" in Doctrine. By default, all relationships have ON DELETE RESTRICT in the database: if you try to delete a User, but it is the "owner" of ...
Do you need getters and setters for Doctrine/Symfony to work? Or can you just make the Entity properties public?
Also... along the same lines... why even use getters and setters? I've read that its so that you can ...
... *love* the way you said:
> the query already knows to select from the GENUS Entity's table
The "weird" (by design) thing about Doctrine sometimes is that it wants you to think in terms of entities and not worry about the database. So, your way of thinking about it here is perfect.
Cheers!
... --dev hautelook/alice-bundle doctrine/data-fixtures
2) activate it in the AppKernel:
$bundles[] = new Hautelook\AliceBundle\HautelookAliceBundle();
3) create an yml file in the src/AppBundle/DataFixtures/ORM folder (we ...
... //knpuniversity.com/screencast/symfony2-ep2/plain-password, that will now clear the password field as well. This means that when your user is persisted in the session, and you flush the Doctrine entity manager, it will ...
... ")
*/
private $user;
```
Then when I run:
```
console doctrine:migrations:diff
[Doctrine\DBAL\Schema\SchemaException]
There is no column with name 'user' on table 'course'.
```
...
... doctrine listener. allowing for all the other entities to refer to the newly extended class. Although I think the methods will need to use interfaces in their signature to handle the extended class.
I’ll see if I can ...
Hey @Paolo!
Cool question! And yes! This is done with the JoinColumn: https://knpuniversity.com/screencast/doctrine-relations/join-column-relation-fixtures, specifically the onDelete setting. I usually let it stay as ...
At my doctrine.yaml I have the following configuration:
```yaml
doctrine:
dbal:
url: '%env(resolve:DATABASE_URL)%'
```
I want to connect to 2 different databases with the following configuration ...
... entity, but doesn't store in DB (doesn't handle with Doctrine). Frequently, in Symfony projects, models uses in form type as data classes.
Cheers!
Ah, great question :). Unfortunately, it's just one of those things that's up to the docs of the different libraries to support. *Ideally*, it would be on the php doc of the interface. For Doctrine, that's true (it ...
...
```
use ApiPlatform\Doctrine\Common\State\PersistProcessor;
#[AsDecorator(PersistProcessor::class)]
```
I get an error when launching tests
```
"An exception occurred while executing a query: SQLSTATE[23502]: Not null ...
... integration myself, but it looks a lot like the Doctrine support: there is a built-in `CollectionProvider` that knows how to pull data from ElasticSearch and populate your custom class.
I hope this short answer at least helps a little bit :).
Cheers!
I cannot get cache to work for me either. There were files in there but when I deleted the doctrine directory it never came back. I mapped $key to twig and dumped it and sure enough there was an md5 hash in there. You ...
2725
Doctrine
Filter Results