Questions tagged [symfony-2.6]

This is the Symfony 2.6.x specific tag. Use it in addition to the symfony2 tag if your question is specific to Symfony 2.6.x — not just 2.x.

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

Information

This tag is specific for the 2.6 version of Symfony, which was released on the 29th November 2014. See the tag for general Symfony 2.x questions.

Living on the edge

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

Useful links

163 questions
0
votes
0 answers

symfony2.6 route with query params (KnpPaginatorBundle and WhiteOctoberPagerfantaBundle)

Trying to use KnpPaginatorBundle and WhiteOctoberPagerfantaBundle If i have url /categories/tech/plates next page url show me /catalog/categories/tech/plates?/catalog/categories/tech/plates=&page=2 I can not understand why this is happening :( Can…
ruscon
  • 77
  • 2
  • 9
0
votes
1 answer

Symfony uniqueEntity fields - save even if fields are set

I'm trying to implement the uniqueEntity functionality to avoid saving twice or more in DB but it seems not working. I red this : http://symfony.com/doc/current/reference/constraints/UniqueEntity.html Here is my code : Am I doing something wrong…
Benjamin Lucas
  • 370
  • 5
  • 20
0
votes
2 answers

Symfony 2.6 mapping errors OneToMany inverse side field

I'm searching why I get an error with my mapping but, I really don't see. I red some issues in stack but it doesn't work for me. The error : The association CTC\Bundle\UserBundle\Entity\Address#addressType refers to the inverse side field…
Benjamin Lucas
  • 370
  • 5
  • 20
0
votes
2 answers

FOSUserBundle no login possible after upgrade from symfony 2.4 to 2.6

lately I've been upgrading on of my sites from symfony 2.4 to 2.6. I followed all the upgrade note I found and nearly everthing works find. However I'm now not able to login into my site anymore. I use FOSUserBundle and my composer.json includes…
cb0
  • 8,415
  • 9
  • 52
  • 80
0
votes
1 answer

symfony2 image multiple upload

I'm trying to figure out how to do multiple file uploads but without luck. I have not been able to get too much info on this.. Maybe someone here will help me out? :D Criteria: I know that in my form type I'm supposed to use multiples for fields;…
L.S
  • 399
  • 1
  • 5
  • 19
0
votes
3 answers

Get username in Symfony (in Twig) on page, which is accessible to anonymous users

Is there a way to access username of the logged user on page, which is accessible to anonym users in Symfony 2.6.1? Example: I have main page, where is link to login and if there is a user logged in, I want to display his username as a link to his…
H.W.
  • 343
  • 1
  • 5
  • 21
0
votes
2 answers

Load devel configuration using a command in Symfony2

I have a command in Symfony2 and I want to be able to read the devel config from config_dev.yml I'm trying to retrieve the config in the command execute method like this: protected function execute(InputInterface $input, OutputInterface $output) { …
rfc1484
  • 9,441
  • 16
  • 72
  • 123
0
votes
3 answers

bootstrap-theme.css.map not found in Symfony2

I use bootstrap loaded from composer in a Symfony2 project. But when I access a template that uses twitter bootstrap it gives me this error message in the browser console: GET http://acme.local/app_dev.php/css/bootstrap-theme.css.map 404 (Not …
rfc1484
  • 9,441
  • 16
  • 72
  • 123
0
votes
1 answer

How to correctly instantiate a service from a Command in Symfony2

I have a Command in Symfony2 that requires a ProductManager service. I pass two arguments to this service: Doctrine's entity manager and a config array from app/config/config.yml Here is my services.xml in the bundle:
rfc1484
  • 9,441
  • 16
  • 72
  • 123
0
votes
1 answer

Use two Databases in one Bundle, one with orm and one without, but with entity

I'm currently developing an application in Symfony2.6 (first time using it) which basically is an new management system of an existing database of objects. While the management (users, roles, routes etc) uses a new orm database, the objects are…
Adan0s
  • 23
  • 5
0
votes
2 answers

Symfony 2.6.4: Namespace Issue? Using custom validator pass throws exception on command line but works fine in browser

I tried Kevin Bond's Solution on this question. It works fine when using the application in the browser but throws the following exception on console commands. I triplechecked my syntax for typos... The code is exactly the same as in the above…
0
votes
1 answer

Symfony2 dyn. password encoding

I'm trying to get an own UserBundle to work on sf 2.6.3, using the following guide: Symfony Book. I've pasted that example code in my setPassword method within the user entity (no idea if thats how it's meant to use, though), changing it to fit (see…
0
votes
2 answers

Symfony open a default page for restricted access

How can I redirect automaticaly an user when it enters a restricted page to /register-as-guest? My wrong solution: in security.yml I set firewalls: default: form_login: login_path: /register-as-guest This works, but when…
Marin Bînzari
  • 5,208
  • 2
  • 26
  • 43
0
votes
1 answer

Can't connect to database with Mysql

I have started learn Symfony. After reading the documentation of Symfony I wanted to try make my application. I have already created a mysql database with the some data, but I can't connect to it within doctrine. As i read in the documentation, if i…
John Doe
  • 43
  • 1
  • 7
0
votes
1 answer

formtype with ManyToOne cause other field error(null)

i'm trying to create the following structure, but get 1 error that drive me crazy. a client has many invoice,an invoice belongs to a client i use the symfony2 formtype, doctrine orm entity, CRUD work fine without the OneToMany in invoice entity,…
Vronn So
  • 5
  • 4
1 2 3
10
11