1:31:25 when I press Ctrl+C, Entities Movie and Actor aren't updated. You have to press Enter instead. I don't know if that's only my case, but if someone has similar problem, just press Enter instead of Ctrl+C.
Thanks a lot for the tutorial!! It is great!! Here is my summary of the recommended extensions: - community material theme - php intelephense - phpdoc comment - php namespace resolver - html snippets - symfony code snippets - symfony for vscode - twig, twig langague and twig languague II - vscode great icons - bracket pair colorizer - emmet live
When youtube courses are out-of-date, many times you'll find out that some packages or methods are deprecated or obsolete, technology advances at a rapid speed, but there's always a solution. I've just started the course a couple minutes ago so here's how you should fix the issues i've found so far: 1. Don't use annotations, they have been deprecated. Use PHP Attributes. 2. For the maker, don't modify directly the composer and add laminas, install instead "composer require --dev symfony/maker-bundle" I'll be updating this comment with the issues/solutions i've found so far. Thanks Dary!
Hi Gary, this is the most comprehensive symfony course on RUclips. Perfectly designed! Perfectly structured!! Perfectly taught!!! Kudos to you man!... You explained doctrine better than it's documentation.
Ty so much Dary, u help a older programmer from brazil to introduce symfony, i watch your course for 8 or 9 hours, slow and making a full setup with VSCode intead phpstorm that i use before, docker with mysql configurations and deploy on heroku. I printed full pdf from symfony book, and now i will reading today drink wine in a ranny day.. Ty again, best regards.
I was planning to use to use this as a base for some school projects and I did. Best decision I made. Passed with flying colours thanks to you! Thank you so much! ❤️
3:05:19 Perhaps it would be better to use route instead of fixed link in "href". If you change the route in future, you would have to remember to also change it in this twig file. But if you use Create new movie instead, it will automatically change every time you change the route.
You just needed to execute "composer require symfony/maker-bundle --dev" to fix the "make" command. No need for workarounds as this is the official way of setting it up. It's also mentioned in the warning message in the console when you tried executing "make" command without having this bundle.
Mr. Dary I am very happy to have discovered your channel, I am finishing your Laravel 8 course, soon I will start the Laravel 9 course, made by you. I really like your way of teaching. Just now I discovered your Symphony course 🙆🏾♂️ ❤️. Thank you so much for taking the time to create these courses, God bless you 😊.
1:52:49 When you renamed AppFixtures to ActorFixtures, the line "use App\Entity\Actor;" was not added automatically, which makes this fixture unusable. Later it magically appears in your code in line 5 :) To all those who have problem with this fixture, remember to manually add this line of code.
@@ilyesbahfir6602 I guess that depends on your IDE. I use VSC, but if you don't have proper extension, the "use" statement will not be automatically added and fixture won't work.
Thank you, this is my first time on any framework. The level of detail and explanation is top notch better than other youtube course. If you got any paid courses for symfony sign me up. More symfony content thank you.
Thank you very much! I haven’t worked on frameworks before, but decided to learn. It’s unusal for me working in terminal and I don’t understand some commands, but with practice I hope I would understand. Thank you again for this helping and absolutely free tutorial. Wish you a good luck and lots of success in future ✊🏻🔥
Exactly what I needed after trying out laravel 9 and being kinda lost on how to add input value to database table and display it properly. I'm gonna dig in your course after tomorrow, thanks a lot for all the efforts you put in.
i dont know what could understand a person that has never seen Symfony in his live from this video.... i already worked in symfony and i find everything very rapid and fast explained... a newbie would really struggle to understand how works for example the scope of names between model, view, and controller... and i think that's is the most difficult part to achieve confidence with all this framework that controls everything
Great introductionary course. Very well done! Helps me a lot in preparing for my new job where I will be using this framework a lot, even though I am completely new in this line of work. Do you have any recommendations for digging into some more 'advanced symfony' topics?
This has been great! Thank you! I hope you have plans for more. I tried Laravel but I had a hard time getting it to work in docker. I discovered Symfony and it does everything I want. This tutorial was great as it covered a lot of material in a fairly short amount of time. Would definitely like to see more.
Hello Dary, this is by far one of most interesting courses i'v found, and i learned a lot from it! Thank you very much for for your time and effort to make it so dynamic. Unfortunatly symfony is evolving fast, and some features and packages are outdated or not needed now, so we have to adapt :) i hope you will make more videos of symfony, i would be happy to watch and learn from them! thumbs up 👍 hat down 🎩 im very gratefull
Great course, i really appreciate your time putting this together. A couple small things missed in the video have tripped me up - but exploring code & bug fixing makes us understand the code much better 🙂 However one that stumped me for a while was around time 3:44:09 (Editing Items) if(file_exists( $this->getParameter('kernel.project_dir') . $movie->getImagePath() )){ the above if() statement used in your example will always return false - it's missing the '/public' section of the path... correct code should be... if(file_exists( $this->getParameter('kernel.project_dir') . '/public' . $movie->getImagePath() )){ Only mentioning it as it might help a beginner progress to the end of the course - without it the edit page doesn't work properly.
Thank you very much for this video. There are a lot of tutorials which are hard to follow, but I've just started your and it's really well paced and explained.
Thanks for making an updated tutorial. I didn't really understand why you used symfony new appname, then deleted the app and used composer to create a new app.
Just to show the watchers that there are multiple ways on how you could create a Symfony app, it could throw people off that are new! Anyways, thank you
Hi, thank you for this brilliant tutorial on symfony. I really enjoyed watching it. One thing I was missing though was an info about the plugin to pimp up your VS Code Terminal. Can you please give me a hint for which plugin I need to search in order to have that nice looking Terminal? Thanks and Cheers Oliver
Because a nicer terminal doesn't affect your Symfony code, so it's not related to the actual content of the video. If you are interested, I've got a separate video on how you could do that: ruclips.net/video/bKUNHPvhsF0/видео.html
This was great and easy to follow. I'm going to check out your Laravel one next. One thing I would have liked to see here is working with the actors, ie adding actors and assigning them to movies.
hands up, who had one to many relationships 🤣😂🤣 Thanks very much for the guidance through symfony, surely seems much faster for the end-visitors than laravel..
hey great tutorial overall but I'm here to mention that the symfony6-static-movies/templates/movies folder contains the finalized files of the course, not the ones you copy pasted in this tutorial, so people have to guess as to what they're supposed to put into those files, because you don't show their contents even on screen at all thank you for the tutorial either way EDIT1: also the edit page contains "Create Movie" EDIT2: one of your last chapters is named "...dit..." instead of "...edit..."
Hola, te escribo en mi idioma, desde Venezuela, acá adolecemos de muchos recursos, expertos internacionales nos comparan con ruinas de guerra, después de los bombarderos, pero la realidad es peor que eso... este curso nos permite aprender técnicas importantes para obtener ingresos a través de Internet, para organizarnos y cambiar nuestra manera de vivir de forma positiva... en otras palabras, estás cambiando el mundo de manera contundente y real. Quizá no lo habías visto de esa manera, pero para nosotros el conocimiento a este nivel es la cura de las enfermedades, la comida sobre la mesa, y el futuro de nuestros hijos. Gracias es poco. un abrazo desde Venezuela, acá cuentas con otra famila.
Hello Dary, I would like to ask you something: when you are creating a new blog entry, how can you update the creation date when that operation is done? It is necessary to store that date somewhere?
Great video, went from knowing nothing about symfony to loads! One question: is it possible to generate an entity for a already existing database table in symfony 6?
At 2:46:20 section "how to read blog items" after creating the twig files in the templates folder I keep getting a RuntimeError Variable "movies" does not exist.
Hi, thanks for the tutorial. I just have one question, what is the purpose of the code in line 87 at 3:44:38? It's actually a string, but it's not used in a function or assigned to a variable...
Thank you Robert. This code is used in Symfony to get the project directory path. The method getParameter() is called on $this, which typically refers to the current class instance. The parameter name 'kernel.project_dir' is passed as an argument to getParameter(), which returns the corresponding value, in this case the project directory path.
@@codewithdary there is concatenation with $movie->getImagePath(); but the whole line is not being assigned to any variable. How is this particular line affecting the overall code, could you elaborate please? Maybe I'm missing something? Huge thank for the tutorial though, it was very useful to learn Symfony from your channel!
Great course! Thank you for creating it Dary. Small detail; the term pivot table is misused when explaining sql relationships. What you are describing are junction tables.
1:21:00 command symfony console doctrine:database:create just won't work for me. Displays the error: "Could not create database `movies` for connection named default An exception occurred in the driver: could not find driver"
Thank you very much for this super tutorial! I would like to ask you If it is good idea to build JavaScript audio player and visualizer in symfony? Are There better frameworks for this kind of app? Thank you
As usual, Dary, nice and clear explanaition for most things, but I am half way through and one thing still makes no sense to me. What logic justifies using an ordering clause in a single row query? Passing a second array to findOneBy() makes absolutelly no sense, if we actually expect to receive 0 or 1 row from the database. For finBy() we expect to return 0-n entries that meet the set conditions, so ordering makes sense. especially if we have a page that displays the results in a datatable that allows ordering on columns.
The new property to actor doesn't update ManyToMany there is also no property added to the actor class that I can access to the related movie objects there was no error and it was success in the terminal but doesn't show updated
Hello, thank you very much for your work and help. I'm having an issue (well, not sure it is a real issue..): In the data fixtures part, I'm getting an error with my text editor (vscode) saying addReference and getReference methods are undefined but it works when I execute "symfony console doctrine:fixtures:load" Do you think it is a problem comming from my IDE ? Anyone got the same "error"? Again, many thanks for your video.
I just realised when typing the line em->getRepository(Movie.. i needed to press Enter to select the suggested option of Movie, so it added the use line in of "use App\Entity\Movie".
Thanks Dary ... The tutorial is very useful and well done. How we can implement data pagination in symphony 6. Is there any bundle for pagination in symfony 6 who does the right thing and has no mistakes in himself?
Hello guys, do you know how to manage static pages through EasyAdmin? For example, if I need modify "home", or other pages, how I need to do from Easy admin?
Let's be honest, I had to stop in the middle in order to look for a proper explanation of what Twig is actually useful for. Because from the look of things, it just seems like a useless overlayer in the beginning. I'm looking for a framework, and I end up having to learn a new syntax for simple stuff I already know how to implement... Let's be honest, I didn't expect to have to learn a new syntax when looking for a tutorial about a PHP framework. Actually, twig enforces you to use the MVC pattern. That's good ! Spending time on explaning this in the beginning before delving into too many details would be useful... I think. Insisting on how basic PHP can turn into a nightmare would help. That's actually why I want to use a framework. I guess other people with less PHP experience might have no clue... yet!
Although i set the field type to ManyToMany, and then set the class to Actor the pivot table does not automatically get generated. Within the Actor class, i only get the methods that are related to the properties of itself e.g. getId, getName and setName. I don't have the movies variable, or any of the 'movie' related methods (like 'addMovie'). I am wondering if there is an extra package installed that creates the relationship between the Actor and Movie entity that I am missing?
@@matthewtindall112 please elaborate what do you mean exited maker:entity command too early. I got the same problem, but don't understand your explanation. Plz help
Hello, can please someone help with doctrine:database:create ?, cause the command still return error :/ "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused"
I have a problem, I do not have doctrine commands and when I try to add it by 'composer require symfony/orm-pack ' I get conflics with my symfony version. How can I resolve this?
To resolve conflicts when trying to add doctrine commands with "composer require symfony/orm-pack", you can try updating the Symfony version in your project.
@@codewithdary what can I do with this error? Cannot find the entity manager for class "App\Entity\Movie". When I try to update the entity to add a new property I get this error
I've been watching all the tutorials from you on Symfony 6 so far, seeing them all in 1 video is gratifying, cheers! Are you planning on making an SEO tutorial for Symfony 6 by any chance? :3
@@codewithdary Oh, that's okay! I found a working bundle, called SonataSeoBundle, so no worries! :) Btw, having that database INSIDE VSCode is just GENIUS! I was seriously screaming of joy because it's so much easier LOL!
At 1:55:50 I am getting a problem with addReference() method, it is undefined method error for some reason, even though everything else is working fine, anybody know a solution? Edit: I Fixed it by simply running the fixtures:load and restarting the project. Guess VS Code just went crazy for some reason. No errors or problems after the restart.
I have this problem! [critical] Error thrown while running command "doctrine:database:create". Message: "An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)" In ExceptionConverter.php line 103: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) In Exception.php line 30: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) In Driver.php line 28: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) please help I'm trying to figure it out but no results
Everything worked beautiful, until I "tested" myself the create method, seems like (at least on my device) that if($imagePath) which should tehnically "solve" the problem I guess... it doesn't, it goes through and print's out a full page of error, saying that the imagePath column cannot be null, and I understand that, but what's the purpose of the IF afterall if it still runs to code, to throw the error, shouldn't that be actually solved from front-end or ... idk, another way ?
An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type integer: "create" CONTEXT: unnamed portal parameter $1 = '...' Hello i got this error, when accessing create movie menu?
I found the solution, is it required to put create() function after index() function? Because error occur if i put create() function after show() function.
When I do commands in vscode terminal that start with "symfony" I get an error But with composer it works Why i that happening? I'm using windows and I installed with composer I've seen a lot of problems for windows users Could someone guide me to a video with a good installation for windows maybe?
Hello. This is a good video generally speaking, but I followed your video step by step and at multiple points there were errors which made me waste a lot of time to debug the problem. For example at around 3:44:00 you make the edit part and you put a curly bracket in the wrong place which makes the image not update when changing it, but in the video somehow it works for you. Really weird. In particular here "if(file_exists( $this->getParameter('kernel.project_dir') . $movie->getImagePath() )){ $this->getParameter('kernel.project_dir') . $movie->getImagePath(); ... } instead of closing the if right after Other than a few hiccups like that it is an informative video. Thanks :D
did it several times, same as you. But i allways get: The requested URL was not found on this server. error. tryed everything i found on google to solve this, but i feel that everything makes things worse Can anyone help me please?
@@codewithdary Happy new Year and Thanks. I have my local machine on Win 10, setup with Xampp. test.local domain is directed to the test.local/public folder. I come to the initial Page of Symfony but whatever route i try, i get a Page not found.
@@legonz5047 I use WAMP Server and I need to add .htaccess file to the public directory: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?file=$1 [L,QSA]
You literally just saved my new job by this free course. I refer to this one again and again. Thank you so much
Great to hear!! :)
1:31:25 when I press Ctrl+C, Entities Movie and Actor aren't updated. You have to press Enter instead. I don't know if that's only my case, but if someone has similar problem, just press Enter instead of Ctrl+C.
Thank you for sharing Jan!
Thank you! You are not the only one, I was stuck on this for an hour!
Had the same problem, thanks for the fix.
thank you
You saved my life man! thanks
I'm moving from Laravel to Symfony and this was a huge help to get me going! Thanks.
Love to hear that! :) Thank you
Thanks a lot for the tutorial!! It is great!!
Here is my summary of the recommended extensions:
- community material theme
- php intelephense
- phpdoc comment
- php namespace resolver
- html snippets
- symfony code snippets
- symfony for vscode
- twig, twig langague and twig languague II
- vscode great icons
- bracket pair colorizer
- emmet live
When youtube courses are out-of-date, many times you'll find out that some packages or methods are deprecated or obsolete, technology advances at a rapid speed, but there's always a solution.
I've just started the course a couple minutes ago so here's how you should fix the issues i've found so far:
1. Don't use annotations, they have been deprecated. Use PHP Attributes.
2. For the maker, don't modify directly the composer and add laminas, install instead "composer require --dev symfony/maker-bundle"
I'll be updating this comment with the issues/solutions i've found so far.
Thanks Dary!
@@dio56301 I switched to the courses from SymfonyCasts i found them to be better.
Hi Gary, this is the most comprehensive symfony course on RUclips.
Perfectly designed!
Perfectly structured!!
Perfectly taught!!!
Kudos to you man!... You explained doctrine better than it's documentation.
Thank you so much
Ty so much Dary, u help a older programmer from brazil to introduce symfony, i watch your course for 8 or 9 hours, slow and making a full setup with VSCode intead phpstorm that i use before, docker with mysql configurations and deploy on heroku.
I printed full pdf from symfony book, and now i will reading today drink wine in a ranny day..
Ty again, best regards.
Thank you so much Andre, tried my best and I'm glad it helped you. It takes time, but you will get there!
Really great explanation and tempo. Man i feel like in 2000 when you could find great things on Internet
Haha that's a dope compliment, thank you!
I was planning to use to use this as a base for some school projects and I did. Best decision I made.
Passed with flying colours thanks to you! Thank you so much! ❤️
Wow, that's incredible. Thank you for watching! :)
3:05:19 Perhaps it would be better to use route instead of fixed link in "href". If you change the route in future, you would have to remember to also change it in this twig file. But if you use Create new movie instead, it will automatically change every time you change the route.
You just needed to execute "composer require symfony/maker-bundle --dev" to fix the "make" command. No need for workarounds as this is the official way of setting it up. It's also mentioned in the warning message in the console when you tried executing "make" command without having this bundle.
Mr. Dary I am very happy to have discovered your channel, I am finishing your Laravel 8 course, soon I will start the Laravel 9 course, made by you. I really like your way of teaching. Just now I discovered your Symphony course 🙆🏾♂️ ❤️. Thank you so much for taking the time to create these courses, God bless you 😊.
Hi Patricio, thank you for your lovely words. I'm currently working on a Laravel 9 course (as you could see by my latest videos)!
1:52:49 When you renamed AppFixtures to ActorFixtures, the line "use App\Entity\Actor;" was not added automatically, which makes this fixture unusable. Later it magically appears in your code in line 5 :) To all those who have problem with this fixture, remember to manually add this line of code.
no it added automatically when he create an actor object.
@@ilyesbahfir6602 I guess that depends on your IDE. I use VSC, but if you don't have proper extension, the "use" statement will not be automatically added and fixture won't work.
Thank you, this is my first time on any framework. The level of detail and explanation is top notch better than other youtube course. If you got any paid courses for symfony sign me up. More symfony content thank you.
Thank you so much, definitely motivates me to make more Symfony content :)
Thank you very much! I haven’t worked on frameworks before, but decided to learn. It’s unusal for me working in terminal and I don’t understand some commands, but with practice I hope I would understand. Thank you again for this helping and absolutely free tutorial. Wish you a good luck and lots of success in future ✊🏻🔥
Thank you for being so kind Anna. Interested in learning another framework? I have tons of Laravel tutorials which might help you out :)
Laravel really is used a lot so his recommendation is pretty good to be honest
Your "All right" is somehow soothing. :)
Haha thank you!! 😂👌
Exactly what I needed after trying out laravel 9 and being kinda lost on how to add input value to database table and display it properly. I'm gonna dig in your course after tomorrow, thanks a lot for all the efforts you put in.
Thank you so much & goodluck!
How did you get lost? What laravel has to do with that?
The begining is awesome. Clear and easy, no stones underwater waiting for me during the course. Liked it!
Appreciate it!!
Best tutorial video I’ve seen on RUclips
You just made my day, Willam! Thank you!
i dont know what could understand a person that has never seen Symfony in his live from this video.... i already worked in symfony and i find everything very rapid and fast explained... a newbie would really struggle to understand how works for example the scope of names between model, view, and controller... and i think that's is the most difficult part to achieve confidence with all this framework that controls everything
Great introductionary course. Very well done! Helps me a lot in preparing for my new job where I will be using this framework a lot, even though I am completely new in this line of work. Do you have any recommendations for digging into some more 'advanced symfony' topics?
Tbh I have no idea. Haven't really seen a lot of content on YT regarding Symfony :(
This has been great! Thank you! I hope you have plans for more. I tried Laravel but I had a hard time getting it to work in docker. I discovered Symfony and it does everything I want. This tutorial was great as it covered a lot of material in a fairly short amount of time. Would definitely like to see more.
True, Laravel is very unfriendly with docker
Hello Dary, this is by far one of most interesting courses i'v found, and i learned a lot from it! Thank you very much for for your time and effort to make it so dynamic. Unfortunatly symfony is evolving fast, and some features and packages are outdated or not needed now, so we have to adapt :) i hope you will make more videos of symfony, i would be happy to watch and learn from them! thumbs up 👍 hat down 🎩 im very gratefull
Glad it was helpful, and thank you for all the kind words Dusan!!
Great course! I did whole application with you. Nice quality, nice voice, good explained - what more could you want?
Thank you so much Bartosz! You tell me what you need ;)
Simple and straight to point, I love it
Thank you Esiro!
Great course, i really appreciate your time putting this together.
A couple small things missed in the video have tripped me up - but exploring code & bug fixing makes us understand the code much better 🙂
However one that stumped me for a while was around time 3:44:09 (Editing Items)
if(file_exists(
$this->getParameter('kernel.project_dir') . $movie->getImagePath()
)){
the above if() statement used in your example will always return false - it's missing the '/public' section of the path... correct code should be...
if(file_exists(
$this->getParameter('kernel.project_dir') . '/public' . $movie->getImagePath()
)){
Only mentioning it as it might help a beginner progress to the end of the course - without it the edit page doesn't work properly.
Thanks a lot! This was exactly what I was missing :)
Thank you very much for this video. There are a lot of tutorials which are hard to follow, but I've just started your and it's really well paced and explained.
Thank you for your kind words :)
Holy shit. This guide has it all.
This is gonna be useful for my school project thanks!
Thank you so much man :)
Fantastic tutorial! Symfony feels so similar to Django it’s surprising. Learned a lot. Thanks
Great to hear Karim! :)
Thanks for making an updated tutorial. I didn't really understand why you used symfony new appname, then deleted the app and used composer to create a new app.
Just to show the watchers that there are multiple ways on how you could create a Symfony app, it could throw people off that are new!
Anyways, thank you
Looks like I have to watch this course. It seems to be there are not so many courses for Symfony. I hope your will be great.
I hope you will enjoy it, share your experience afterwards!
Technically your 4th SQL query around 2:12:33 should be something like: SELECT top 1 * FROM movies WHERE id = 6 AND ...
Hi,
thank you for this brilliant tutorial on symfony. I really enjoyed watching it.
One thing I was missing though was an info about the plugin to pimp up your VS Code Terminal.
Can you please give me a hint for which plugin I need to search in order to have that nice looking Terminal?
Thanks and Cheers
Oliver
Because a nicer terminal doesn't affect your Symfony code, so it's not related to the actual content of the video. If you are interested, I've got a separate video on how you could do that: ruclips.net/video/bKUNHPvhsF0/видео.html
I would love that you created more deeply on this project
Will definitely do in the future Pham!
This was great and easy to follow. I'm going to check out your Laravel one next. One thing I would have liked to see here is working with the actors, ie adding actors and assigning them to movies.
Should've added that, but Laravel 9 came out so I couldn't work more weeks on the course :(
Great course, actually one of the best I watched thank you
That's the best compliment I could get, thank you so much Mohammed!
hands up, who had one to many relationships 🤣😂🤣 Thanks very much for the guidance through symfony, surely seems much faster for the end-visitors than laravel..
You’re welcome 😊
hey
great tutorial overall but I'm here to mention that the symfony6-static-movies/templates/movies folder contains the finalized files of the course, not the ones you copy pasted in this tutorial, so people have to guess as to what they're supposed to put into those files, because you don't show their contents even on screen at all
thank you for the tutorial either way
EDIT1: also the edit page contains "Create Movie"
EDIT2: one of your last chapters is named "...dit..." instead of "...edit..."
I mean the differences are pretty small and irrelevant, but it may confuse some beginners
Hi Rares, thank you for providing such a detailed feedback, I will look into it!
Also, thank you so much
thanks a lot, you saved my life ,and you're method is just amazing.
Could you please do video with more advanced features
Definitely will do in the future! :)
Hola, te escribo en mi idioma, desde Venezuela, acá adolecemos de muchos recursos, expertos internacionales nos comparan con ruinas de guerra, después de los bombarderos, pero la realidad es peor que eso... este curso nos permite aprender técnicas importantes para obtener ingresos a través de Internet, para organizarnos y cambiar nuestra manera de vivir de forma positiva... en otras palabras, estás cambiando el mundo de manera contundente y real. Quizá no lo habías visto de esa manera, pero para nosotros el conocimiento a este nivel es la cura de las enfermedades, la comida sobre la mesa, y el futuro de nuestros hijos. Gracias es poco. un abrazo desde Venezuela, acá cuentas con otra famila.
Thank you.
Hello Dary, I would like to ask you something: when you are creating a new blog entry, how can you update the creation date when that operation is done? It is necessary to store that date somewhere?
Great video, went from knowing nothing about symfony to loads!
One question:
is it possible to generate an entity for a already existing database table in symfony 6?
At 2:46:20 section "how to read blog items" after creating the twig files in the templates folder I keep getting a
RuntimeError Variable "movies" does not exist.
Hi, thanks for the tutorial. I just have one question, what is the purpose of the code in line 87 at 3:44:38?
It's actually a string, but it's not used in a function or assigned to a variable...
Thank you Robert. This code is used in Symfony to get the project directory path. The method getParameter() is called on $this, which typically refers to the current class instance. The parameter name 'kernel.project_dir' is passed as an argument to getParameter(), which returns the corresponding value, in this case the project directory path.
@@codewithdary there is concatenation with $movie->getImagePath(); but the whole line is not being assigned to any variable. How is this particular line affecting the overall code, could you elaborate please? Maybe I'm missing something?
Huge thank for the tutorial though, it was very useful to learn Symfony from your channel!
Awesome guy ! Thanks
Happy to help Tomas! :)
Excellent and coherent tutorial!
Many thanks buddy!!
You're awesome, thank u so much for your work.
Means the world to me, thank you so much :)
Great course! Thanks a lot! 🙂
You're very welcome!
awesome, what extension are you using to se your dbs in vs code? I use SqlTools but can't see the tables as you see them. Thx!
Its called Database Client & I love it!
Great course! Thank you for creating it Dary. Small detail; the term pivot table is misused when explaining sql relationships. What you are describing are junction tables.
Hmm, thank you for sharing that with me Andreas, i'll look into it, sounds pretty interesting!
Thanks KING!!! 👑
Thank you my man!!
You are brilliant! Thank you for this amazing tutorial : )
I should be thanking you for watching :)
1:21:00 command symfony console doctrine:database:create just won't work for me. Displays the error:
"Could not create database `movies` for connection named default
An exception occurred in the driver: could not find driver"
Thank you very much for this super tutorial! I would like to ask you If it is good idea to build JavaScript audio player and visualizer in symfony? Are There better frameworks for this kind of app? Thank you
You can definitely do that, but I would most likely have a look at what packages are available and choose based on that.
appreciated ! your hard work, really amazing
Thank you Luqman.
Thanks for this content ❤
Can we get the next part of this project
Thank you! I'm not working on anything Symfony related yet :)
@@codewithdary 😔😔
As usual, Dary, nice and clear explanaition for most things, but I am half way through and one thing still makes no sense to me. What logic justifies using an ordering clause in a single row query? Passing a second array to findOneBy() makes absolutelly no sense, if we actually expect to receive 0 or 1 row from the database. For finBy() we expect to return 0-n entries that meet the set conditions, so ordering makes sense. especially if we have a page that displays the results in a datatable that allows ordering on columns.
The new property to actor doesn't update ManyToMany there is also no property added to the actor class that I can access to the related movie objects there was no error and it was success in the terminal but doesn't show updated
Nice course, thank you
You are welcome Chisomaga!
A very nice explanation. Thanks 🙏 .
So nice of you Siddhant!
Excellent !
Glad you like it!
This is huge. Thank you very much!
You're welcome!
Hello, thank you very much for your work and help.
I'm having an issue (well, not sure it is a real issue..): In the data fixtures part, I'm getting an error with my text editor (vscode) saying addReference and getReference methods are undefined but it works when I execute "symfony console doctrine:fixtures:load"
Do you think it is a problem comming from my IDE ? Anyone got the same "error"?
Again, many thanks for your video.
Great tutorial so far however i am getting "Class 'App\Controller\Movie' does not exist" at 2:03:30.
I just realised when typing the line em->getRepository(Movie.. i needed to press Enter to select the suggested option of Movie, so it added the use line in of "use App\Entity\Movie".
Happy that you found the solution yourself :)
very clear course, thank you so much
Thank you Toprak
Thanks Dary ...
The tutorial is very useful and well done.
How we can implement data pagination in symphony 6. Is there any bundle for pagination in symfony 6 who does the right thing and has no mistakes in himself?
Hello guys, do you know how to manage static pages through EasyAdmin? For example, if I need modify "home", or other pages, how I need to do from Easy admin?
Sir, one db can use in multiple symfony project ? If is yes then give one video this related and explain totally....
اخوكم من المغرب حياكم الله
Thank you
Let's be honest, I had to stop in the middle in order to look for a proper explanation of what Twig is actually useful for. Because from the look of things, it just seems like a useless overlayer in the beginning. I'm looking for a framework, and I end up having to learn a new syntax for simple stuff I already know how to implement... Let's be honest, I didn't expect to have to learn a new syntax when looking for a tutorial about a PHP framework. Actually, twig enforces you to use the MVC pattern. That's good ! Spending time on explaning this in the beginning before delving into too many details would be useful... I think. Insisting on how basic PHP can turn into a nightmare would help. That's actually why I want to use a framework. I guess other people with less PHP experience might have no clue... yet!
I don't really get your comment, sorry?
@@codewithdary I think he meant to learn pure API ? Cuz the look of Twig made this more likely a web application
@@phamtungduong8580 I haven’t mentioned that we’re going to make an api? So that seems odd
Although i set the field type to ManyToMany, and then set the class to Actor the pivot table does not automatically get generated. Within the Actor class, i only get the methods that are related to the properties of itself e.g. getId, getName and setName. I don't have the movies variable, or any of the 'movie' related methods (like 'addMovie'). I am wondering if there is an extra package installed that creates the relationship between the Actor and Movie entity that I am missing?
Scratch this, i had exited the maker:entity command too early, another two hours wasted
Don't worry wasting time on those things, it's part of coding and you will learn from it :D
@@codewithdary Thank you, thanks for the top content too, it's making learning symfony a smoother process than i imagined!
@@matthewtindall112 please elaborate what do you mean exited maker:entity command too early. I got the same problem, but don't understand your explanation. Plz help
@@matthewtindall112 scratch this. Figured it out. hahahaha
Hi how did you create pivot table ? was it generated automatically? because it's not working for me. I'm implementing one to many relationship!!
The pivot table is created automatically by the Doctrine ORM when the schema is updated.
Thank you very well.
Thank you too for the support Uraljon!
That tutorial is awesome😋
Thanks 😁
Hello, can please someone help with doctrine:database:create ?, cause the command still return error :/ "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused"
Wrong database credentials or wrong URL!
Did I just missed something, or did you mention covering ORM relations but then didn't in the CURD / Forms chapter?
Kindly make a tutorial series for Symfony API
is it useful if im working on asymfony 5.4 project?
Definitely will be useful. It's not like the entire framework changes when a new version comes up, just minor changes where you might run into.
I have a problem, I do not have doctrine commands and when I try to add it by 'composer require symfony/orm-pack ' I get conflics with my symfony version. How can I resolve this?
To resolve conflicts when trying to add doctrine commands with "composer require symfony/orm-pack", you can try updating the Symfony version in your project.
@@codewithdary what can I do with this error? Cannot find the entity manager for class "App\Entity\Movie". When I try to update the entity to add a new property I get this error
I've been watching all the tutorials from you on Symfony 6 so far, seeing them all in 1 video is gratifying, cheers!
Are you planning on making an SEO tutorial for Symfony 6 by any chance? :3
Nice nice! :)
Most likely not, I'm sorry.
@@codewithdary Oh, that's okay! I found a working bundle, called SonataSeoBundle, so no worries! :)
Btw, having that database INSIDE VSCode is just GENIUS! I was seriously screaming of joy because it's so much easier LOL!
At 1:55:50 I am getting a problem with addReference() method, it is undefined method error for some reason, even though everything else is working fine, anybody know a solution?
Edit: I Fixed it by simply running the fixtures:load and restarting the project. Guess VS Code just went crazy for some reason. No errors or problems after the restart.
Thank you * so much bro
No problem Najim, thank you!!
Thank you, dude.
No problem!
hello, in my assets folder nothing controllers.json file. how to fix it?
What is inside of it?
I have this problem!
[critical] Error thrown while running command "doctrine:database:create". Message: "An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)"
In ExceptionConverter.php line 103:
An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
In Exception.php line 30:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
In Driver.php line 28:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
please help I'm trying to figure it out but no results
Your database credentials are not correct.
Everything worked beautiful, until I "tested" myself the create method, seems like (at least on my device) that if($imagePath) which should tehnically "solve" the problem I guess... it doesn't, it goes through and print's out a full page of error, saying that the imagePath column cannot be null, and I understand that, but what's the purpose of the IF afterall if it still runs to code, to throw the error, shouldn't that be actually solved from front-end or ... idk, another way ?
An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type integer: "create"
CONTEXT: unnamed portal parameter $1 = '...'
Hello i got this error, when accessing create movie menu?
I use PostgresSQL datababase
I found the solution, is it required to put create() function after index() function? Because error occur if i put create() function after show() function.
I just waiting so you found the solution yourself (just kidding)
saved my life fr
Love to hear that Valerie
thank u so much
You are most welcome :)
DAY1 - 45:00
DAY2 - 01:21:25
DAY3 - 02:14:25
DAY4 - 03:03:25
DAY5 - --:--:-- (most irritating part!)
Did you skip day 2?
@@codewithdary Thanks for the reminder, I was taking a break and this message put full energy in me🔥
When I do commands in vscode terminal that start with "symfony" I get an error
But with composer it works
Why i that happening?
I'm using windows and I installed with composer
I've seen a lot of problems for windows users
Could someone guide me to a video with a good installation for windows maybe?
Have you installed Symfony CLI?
symfony.com/download
Hi i want to use symfony as an API and Vuejs for my frontend, how can i go about this?
Exactly as your saying tbh…
Hello. This is a good video generally speaking, but I followed your video step by step and at multiple points there were errors which made me waste a lot of time to debug the problem. For example at around 3:44:00 you make the edit part and you put a curly bracket in the wrong place which makes the image not update when changing it, but in the video somehow it works for you. Really weird. In particular here
"if(file_exists(
$this->getParameter('kernel.project_dir') . $movie->getImagePath()
)){
$this->getParameter('kernel.project_dir') . $movie->getImagePath();
...
}
instead of closing the if right after
Other than a few hiccups like that it is an informative video. Thanks :D
Thank you so much. Keep working on making it better and better and definitely helps with your feedback!
I didn't get any of the auto-generated functions in Actor.php whilst following the Doctrine, Entities and Migrations section. Any ideas? Thanks
Hit enter instead of CTRL+C to close off Doctrine, I think!
All is ok, but: The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue. I hate frameworks.
Sadly the twig syntax highlighting isn't working anymore even with your json settings.
:(
did it several times, same as you. But i allways get: The requested URL was not found on this server. error.
tryed everything i found on google to solve this, but i feel that everything makes things worse
Can anyone help me please?
I can’t really tell what you did based on your comment, please be specific next time
@@codewithdary Happy new Year and Thanks.
I have my local machine on Win 10, setup with Xampp.
test.local domain is directed to the test.local/public folder. I come to the initial Page of Symfony but whatever route i try, i get a Page not found.
@@legonz5047
I use WAMP Server and I need to add .htaccess file to the public directory:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?file=$1 [L,QSA]
Where to find your presentation?
Not online unfortunately
Could you tell us how to show actor related to movie in twig template? I mean like {{ movie.name }}, {{ movie.actor.name }}?
cool cool
Thank you :)