Chapters
27 Chapters
|
2:45:18
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!
Subscribe to download the code!
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Subtitles
Subscribe to download the subtitles!
Subscribe to download the subtitles!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
08.
Owning Vs Inverse Sides of a Relation
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=8.2",
"ext-ctype": "*",
"ext-iconv": "*",
"babdev/pagerfanta-bundle": "^3.3", // v3.3.0
"composer/package-versions-deprecated": "^1.11", // 1.11.99.3
"doctrine/doctrine-bundle": "^2.1", // 2.4.2
"doctrine/doctrine-migrations-bundle": "^3.0", // 3.1.1
"doctrine/orm": "^2.7", // 2.9.5
"knplabs/knp-markdown-bundle": "^1.8", // 1.9.0
"knplabs/knp-time-bundle": "^1.11", // v1.16.1
"pagerfanta/doctrine-orm-adapter": "^3.3", // v3.3.0
"pagerfanta/twig": "^3.3", // v3.3.0
"sensio/framework-extra-bundle": "^6.0", // v6.2.1
"stof/doctrine-extensions-bundle": "^1.4", // v1.6.0
"symfony/asset": "5.3.*", // v5.3.4
"symfony/console": "5.3.*", // v5.3.7
"symfony/dotenv": "5.3.*", // v5.3.7
"symfony/flex": "^1.3.1", // v1.21.6
"symfony/framework-bundle": "5.3.*", // v5.3.7
"symfony/monolog-bundle": "^3.0", // v3.7.0
"symfony/runtime": "5.3.*", // v5.3.4
"symfony/stopwatch": "5.3.*", // v5.3.4
"symfony/twig-bundle": "5.3.*", // v5.3.4
"symfony/validator": "5.3.*", // v5.3.14
"symfony/webpack-encore-bundle": "^1.7", // v1.12.0
"symfony/yaml": "5.3.*", // v5.3.6
"twig/extra-bundle": "^2.12|^3.0", // v3.3.1
"twig/string-extra": "^3.3", // v3.3.1
"twig/twig": "^2.12|^3.0" // v3.3.2
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.3", // 3.4.0
"symfony/debug-bundle": "5.3.*", // v5.3.4
"symfony/maker-bundle": "^1.15", // v1.33.0
"symfony/var-dumper": "5.3.*", // v5.3.7
"symfony/web-profiler-bundle": "5.3.*", // v5.3.5
"zenstruck/foundry": "^1.1" // v1.13.1
}
}
11 Comments
I have two related questions question:
I ask these questions because I have created an entity that describes a document layout for a specific user. I have created two ManyToOne relations inside the layout entity that relates to the user entity and to the document entity.
When I delete a document in the database, I get an SQL error about the document, which can not be deleted. Should I have defined a OneToMany relation in the user and document entities that relate them to a layout entity?
I am quite puzzled
Hey @Francois
I hope I clarified things a bit and you can structure your project better. Cheers!
Hi
I was wondering why, when I close the terminal (stop the mysql container inside docker) and hit
docker compose upagain, the datas remain in the project.I thought database holds the datas, but where the datas go when I close my terminal and stop the mysql container?
Is it because stop the container doesn't mean delete and databases and recreate them, but instead
changing the port number to the same database?
docker makes me headache, Help me! lol
Cheers!
Hey @Yuki-K
woh that's complex question, by default if you didn't configured to store data on your local drive iit stores it inside the container, and it keeps data saved until you didn't destroyed it. But if you want a persisted data you should map you local filesystem with container filesystem so in this case you will not lose any data even if container will be dropped.
Cheers!
The question asks us to pick the answer that is incorrect, but they're all correct.
Hey Peter,
Yes, this is a tricky question, and that's why the right option is the one that says [SPOILER ALERT] "All of these statements are true"
Cheers!
But the question is for what is is not true. So by selecting that answer you're saying it's not true that all of the statements are true, i.e. they're all false.
Ohh I think I got your point. Do you think if we reword the option to say something like "None, all of these statements are correct" would make more sense?
Hi, just to point out that there is no more subtitle from this video, then re-appear on the 11th: "Collection Criteria for Custom Relation Queries"
Thanks for pointing that out - we'll get it fixed up - we had a hiccup with our subtitling system and we need to reprocess a couple of them!
You're welcome. Thanks for your reactivity !
"Houston: no signs of life"
Start the conversation!