Is there any way in symfony that "Entity less repositories" be used in services just like one service is calling another service.
I am asking because I want put sql DQL/SQL in methods separated from Services like in 2 layers as I don't want to map any table with entity.
Services >> Repositories >> Db
Twitter Service >> TwitterRepository >> Table1, tabl2, tabl3, table4, tabl5 Db
for example I can replace Twitter in following call
$data = $this->getEntityManager()->getRepository->("MyApiBundle:SocialMedia\Twitter")->findProfileTweets($profileId)
in short 1. Repository can be called in service. 2. Entity should not be used.
any help we be appreciated. Thanks in advance .