Repository in Symfony 6 | What is a Repository? | Symfony 6 for Beginners | Learn Symfony 6

preview_player
Показать описание
This video will show you how you can use repositories in Symfony - Want to learn an incredible open-source PHP framework? Symfony is one of the most popular frameworks when you need to build high-performance & complex web applications.

📚 New Udemy Course

📲 Let’s plan a meeting

💌 Newsletter

🔥 Resources

🔗 Useful links

Want to learn more?

📋 Table of Content
00:00 - Introduction
01:39 - Method I: Adding your Repository
04:34 - Method II: EntityManagerInterface
06:12 - Creating a __construct()
09:18 - find()
10:21 - findBy()
12:28 - findOneBy()
14:36 - count()
15:56 - getClassName()

#symfony #framework #symfony6 #php
Рекомендации по теме
Комментарии
Автор

Hello,
I'm new to PHP, MySQL, Symfony etc. (on education course, formation of web Dev). 3rd month.
Thank you for your Learn/HowTo/"Tutorial" videos. It's very clear, even on my very code beginner level.
Continue that way. Explications done while video/coding running/paused is very good.

Just one thing to notice :

While giving new methods, class etc. used on/in those functions/parameters (__construct & undex etc.) could you give the relationship (in two or three words : keeping simple) between those files/methods/classes (from where they been taken or where they relay so we can access them for this/that reason ex: in Symfony of course.

I'm sorry I'm not good at asking questions for explanations, not very precise :gar: .
So i'll give a little example, like a feedback on this step of your course on Symfony

Ex : Taking the EntityManagerInterface for function __construct. So Where this Entity relays and for what purpose it's used on this function. I see that it has this path in
use

So it's used for $this->em = $em;
$this->em-> having multiple methods.
How those classes are defined in that particular step of creating function index() ?

2nd point :

As I said this step was very clear as the previous ones.

Just for creating in mine personal project, what's the "key" for research(es) done on the function/method/... I'll have use of ?

Again little ex : need to do posts (like in Twitter), so i search for "How to Create Posts in Symfony?". Obviously that not the good research method.
I'll try to improve : Creating post Database (I got it in your previous videos), then create my Entity /Repository/... for Posts -> & here the questions arises, Entity/Repo../… -> Posts what's the relationship ? What's purpose?

As I was typing this commentary, I was also doing my research to see if what I'm typing, trying to ask is relevant with the "process" of symfony coding. I got some answers, but it is still relevant and i would like to get your answer as pro developper.

I let it as it is, so others with same questions could get answers.

Thank you :)
Disclaimer : I'm Not asking how to become Dev, how Dev's brain process works etc.. :D
:goodvibes:

abdulassamadshishani
Автор

Thank you from a young Russian student

kholodnov
Автор

Man this is playlist too good. Maybe a new playlist on more detailed topics??? Greetings from Germany

PartyBrudeeeer
Автор

the dd command is so useful when developing

DavidvanDeijk
Автор

Did you explain your actually declared "use" statements before? I believe, you have added some use statements and continuing to add use statements without naming it, right?
If so, your audience will stumble over things like missing Entity Definitions or a missing EntityManagerInterface or missing repositories (I did).

dominquehopp
Автор

// super nice tutorials. I'm looking forward watching all of your Symfony 6 videos.
// thanks for all your effort and commitment 👏

manguitodelicioso
Автор

Please create video on Collection type, entity relationships

Sadiq
Автор

Hello,

I am a big fan of your Kannal! Keep up the good work!
I still have a question about Laravel: I have several external $_SESSIONs and would pass those to the in a Laravel session -> Session::put('example', $_SESSION['example'].
Unfortunately I get the message that the variable $_SESSION was not defined.

Do you have a tip for me?

dirkk.
Автор

Hi, Thank you. Where is the query builder video ?

EkronSh
Автор

What is this "dd" function? I think you didn't explain it. We can see that it prints stuff to the browser, but where did you define it? Or which package actually contains it? Maybe I missed that part of the video tutorial.

nbro
Автор

At 4:35 why does the index controller method load the webpage when you provide MovieRepository as a parameter?

I mean shouldn't we be doing "new MovieRepository" somewhere?

SS-ppwx
Автор

i an to write find to retrieve geting data from 1 to 10, 11 to how should i write this please?

luctandoum
Автор

I wonder do you installed any PHP auto completion extensions in your VS Code?

ilyasbakirov