Skip to content

Tag: symfony

“Error [Semantical Error] The annotation “@DoctrineORMMappingOnetoMany” in property” on Gitlab CI but not in local env or production [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed las…

symfony CLI, how to open ports on mac? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 11 months ago. Improve this question I’m trying out Symfony for the first time, so I installed all the stuff required to …

php write csv to file returns blank file

I have some csv data that looks like this: When I try to export this csv to a file like this: I get an empty file, what am I doing wrong here Answer From the Symfony docs: https://symfony.com/doc/current/components/http_foundation.html#request If you just created the file during this same request, the file ma…

Symfony mocking repository for testing

I’m trying to mock a repository containing all modules, and it has a method called findAll() that returns all elements from that repository. I cant seem to be able to pull any data from the mocked repository. Any ideas how I could fix it? Mocking repository: Trying to use method from ModuleRepository cl…

Only annotation mapping is supported by Maker Bundle

I have changed the configuration of my Symfony project to use PHP attributes with Doctrine in my Entities. I was really happy about this and wanted to give it a try. I have changed my doctrine.yaml from annotation to attribute and use attributes in my entities With this configuration my php bin/console do:sc:…