I use the Symfony version 3.4.0 and I try to use this bundle to translate entities : https://github.com/webfactory/WebfactoryPolyglotBundle So I created two entities ( Film and FilmTranslation ) for …
Tag: symfony
Fetching objects from database in Symfony
I have entity Domain which has fields id, domain, users in field users, I have an id which is the id of the user who created that domain. now I have created for in the template which will display …
Symfony 4 – .env Variables Not Available
I’m running in to a brick wall here. Everything so far with Symfony 4 has been sunshine and daisies but now I can’t seem to add any environment variables to my project. In my project root there is …
Can Symfony 4 be configured to ignore code installed in subdirectories?
I’m currently converting an old website to use Symfony 4 and the site uses the LiveZilla live chat app. LiveZilla lives in a subfolder of the site, and is accessed directly using URLs under somesite….
Show form errors
I would like to show error messages in the top of my registration form. I created my registration form:
Register
{{ form_start(form) }} {{ …
Symfony 4 custom deserializer returns empty properties in entity
I have a custom Symfony 4 deserializer class CardImageDecoder implements EncoderInterface, DecoderInterface { public function encode($data, $format, array $context = []) { if($format !…
My profiler toolbar isn’t showing up in symfony 4.3.1
In my .env file, I have specified my app environment to be dev and debug to be true like so: In my config/packages/dev/web_profiler.yaml file I have the following: The routing within config/routes/dev/web_profiler.yaml seems to be fine: So when I run the server with symfony server:start everything is fine, but the profiler doesn’t appear. Did I miss something that enables that
Correct way to extend classes with Symfony autowiring
I’m wondering if this is the correct way to extend and use classes with Symfonies autowiring. For example, I have a BaseClass that instantiates and auto wires the entity manager. Then I have a subclass that extends the BaseClass and needs access that method. So I let it autowire again and pass it to the parent constructor. Now I’m wondering
Panther Chrome WebDriver : Full screen?
In my functional test of my symfony 4 application, i use the Chrome Webdriver with PANTHER_NO_HEADLESS=1 to see what happen. My problem is : Chrome browser starting with Debug Tool (F12) and not in full screen. This is a problem because i want to test elements that appears only on full screen. My test : Command : Then How can
Symfony 4.3: User Deprecated: The SymfonyBundleTwigBundleLoaderFilesystemLoader class is deprecated since version 4.3 and will be removed in 5.0 …
After upgrading to Symfony 4.3, I’m getting the following 22 deprecation warnings: User Deprecated: The SymfonyBundleTwigBundleLoaderFilesystemLoader class is deprecated since version 4.3 and will be removed in 5.0; use Twig notation for templates instead. User Deprecated: The “templating.locator” service is deprecated since Symfony 4.3 and will be removed in 5.0. User Deprecated: The SymfonyBundleFrameworkBundleTemplatingLoaderTemplateLocator class is deprecated since version 4.3