php - Symfony2 - getRepository of entity on Entity subfolder -


most of time, entities located @ src/project/foobundle/entity/foo.php. can access repository by:

$this->getrepository('projectfoobundle:foo'); 

but how access repository when entity located @ src/project/foobundle/entity/foo/foo.php?

as mentioned in comment can done following syntax:

$this->getrepository('projectfoobundle:foo/foo'); 

or (as mentioned @touki)

$this->getrepository('projectfoobundle:foo\foo'); 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -