Questions tagged [symfony-3.1]

This is the Symfony 3.1.x specific tag. Use it in addition to the symfony3 tag if your question is specific to Symfony 3.1.x — not just 3.x.

Symfony is a PHP full-stack web framework developed and maintained by Sensio Labs.

Information

This tag is specific for the 3.1 version of Symfony, which will be released on November 2015 as long term support version of Symfony. See the tag for general Symfony 3.x questions.

The 3.1.0 version was released on the 30th May 2016.

Living on the edge

There are a set of interesting links on the symfony blog about what's new in this version:

197 questions
4
votes
2 answers

TWIG Get first letter of HTML after Raw filter

I know how to get the first letter of a string in TWIG

The first letter is {{someString | first}}

With an HTML string like

This is a sting

The above would return '<' Adding 'Raw'/'escape' ends up to the same result. I need to…
R.Damasinoro
  • 381
  • 2
  • 20
4
votes
3 answers

Could not open input file: app/console (Symfony 2)

Recently I started working with Symfony2. Unfortunately the php app/console commands doesn't work at both my MAMP server as Vagrant server (MAC OSX). I tried to make a bundle with the following command php app/console generate:bundle…
Giesburts
  • 6,879
  • 15
  • 48
  • 85
3
votes
1 answer

Symfony OneToMany updates instead of insert

I am a beginner in Symfony. I have a strange problem in my form. I have 2 entities : Proposal_Lsi and Lsi_Beams. One proposal can have multiple beams, but a beam can only have one proposal. I figured I should use a OneToMany/ManyToOne relation, and…
3
votes
4 answers

Symfony offline installation with composer

I'm trying to install Symfony on a server, which has no connection to the internet. I copied composer on the server but when i try to install it i get this error Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org Is there any…
User
  • 51
  • 2
  • 7
3
votes
1 answer

Unrecognized option "assets" under "framework", symfony 3

can you help me to resolve this problem ? . I am trying to upload logo and when i type any command i get this exception in Symfony v 3.2.8 Unrecognized option "assets" under "framework" in config.yml @Route("/admin/logo",…
Onur Özkır
  • 559
  • 3
  • 12
3
votes
1 answer

How to get entity manager in form type

How could I get entity manager when building forms? I would like to search results from the database and build the choices for choicetype. I know I could use entitytype instead but in this situation I want to record string in database than an…
Bob
  • 71
  • 1
  • 11
3
votes
1 answer

Decode multiple model in php symfony from json to object

I would like to convert a json into a object / model. If the json is only one-dimensional, it works perfectly. But if it is multidimensional, only the outer (user) is converted, but not the inner (company), this remains an array. Can you help me…
Cyb10101
  • 363
  • 3
  • 10
3
votes
1 answer

Symfony 3.2.1 removes underscore from yml file value

I tried to upgrade from Symfony 3.1.8 to 3.2.1 using composer. During the cache clear I received an error stating An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user '########'@'IpAddress' (using password: YES) however…
MEmerson
  • 772
  • 1
  • 6
  • 17
3
votes
1 answer

Symfony 3.1 Cache - DeleteItem not working in prod

I've been using Symfony 3.1 with new Cache Component (https://symfony.com/doc/current/components/cache.html), I'm using the redis adapter config.yml cache: app: cache.adapter.redis default_redis_provider: "redis://127.0.0.1:6379" Basically,…
BraCa
  • 351
  • 1
  • 5
  • 13
3
votes
1 answer

Symfony form handleRequest not populating

I have a symfony 3 form. And I'm trying to populate it with handleRequest like this: $user = new User(); $userForm = $this->createForm(UserType::class,…
overburn
  • 1,194
  • 9
  • 27
3
votes
0 answers

Symfony 3 - cssrewrite filter not found

i dont get it - i already have setted up a few symfony projects but now i am totally lost with the error message: contains an error: There is no "cssrewrite" filter. composer: "require": { "php": ">=5.5.9", "symfony/symfony": "3.1.*", …
Helmut Januschka
  • 1,578
  • 3
  • 16
  • 34
3
votes
2 answers

Symfony 3.1 PSR-6 Caching Settings

Config.yml: cache: app: cache.adapter.doctrine system: cache.adapter.doctrine default_doctrine_provider: ~ default_psr6_provider: ~ default_redis_provider: "redis://localhost:6379" Symfony 3.1 support doctrine cache, but you do…
Cesur APAYDIN
  • 806
  • 3
  • 11
  • 24
3
votes
4 answers

symfony 3.1 Check if a bundle is installed

I'm developing a bundle who has a dependency on another one. In order to handle the case that the base bundle has not been installed I'll like to perform a "bundle_exists()" function inside a controller. The question is: How can I have a list of…
Carlos
  • 352
  • 1
  • 3
  • 13
3
votes
1 answer

How to debug routes using Symfony Routing as a standalone component?

I am using Symfony's 3.1 Routing Component as a standalone component. I wish to debug the routes. According to this: http://symfony.com/doc/current/routing/debug.html this is done by running the following command: php bin/console…
Yahya Uddin
  • 26,997
  • 35
  • 140
  • 231
3
votes
1 answer

Upgrading Symfony from 2.8 to 3.1: "Your requirements could not be resolved to an installable set of packages."

So I have this blog developped with Symfony 2.8.6. I noticed that Symfony3.1 LTS version is available and wish to upgrade. I therefore fixed all the deprecation calls. I grabbed Symfony3.1's composer.json file and tried to run $ composer…
D4V1D
  • 5,805
  • 3
  • 30
  • 65
1
2
3
13 14