R
R
Roman L.2015-05-09 06:45:17
symfony
Roman L., 2015-05-09 06:45:17

Passing class constant as getRepository argument?

Hello,
Got the code: $this->getDoctrine()->getRepository(Image::class);
Don't tell me what's going on here?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-05-09
Protko @Fesor

php.net/manual/en/language.oop5.basic.php#language...
that is, we ask the doctrine to give us a repository for the Image entity (by the full class name).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question