Questions tagged as 'symfony-2'

0
answers

Problems with listing an entity as a checkbox in Symfony2

My system has two related tables called material and items_budget . The second table has a form that lists the name of each material in a checkbox, followed by two input , one for its quantity, and another for the price. Here is the c...
asked by 21.09.2015 / 00:52
0
answers

Symfony2 - Only one field has its value read, the rest of this field is NULL when submitting form

I have two related tables: material and items_budget . The items_budget table has a form that has a field that lists the name of all the material in a group of checkbox , and next to each checkbox has two % fields, one for q...
asked by 21.09.2015 / 03:58
2
answers

Symfony 2 create query

createQuery("select p.name from blogBundle:Person p where p.id not in(select c.person from blogBundle:Category c)")->execute(); And I'm getting this error: Error: Invalid PathExpression. Must be a StateFieldPathExpression     
asked by 02.03.2015 / 17:50
1
answer

Menu control

I have a menu in a bundle and I want to add to that menu a part that is in another menu, but I want these menus to appear both on all pages. The main menu is this: {# src/RoqSys/BaseBundle/Resources/views/Default/base.html.twig #} {% extend...
asked by 13.02.2015 / 13:00
2
answers

How do I show the notification when it is missing -30 days to the expiration date

I have this condition to show the notification when the expiration date is missing 30 days, but it is not doing what I want. Anyone have a better idea? {% if entity.isExpired %} strong>Alerta!</strong>O produto com o código...
asked by 08.05.2016 / 22:53
1
answer

findBy () all records with two conditions

I'm trying to work with findBy() on an application made in Symfony2. I would like to put two conditions in FindBy or mix with Where if possible but I am not getting it. $properties = $em->getRepository('PropertyBundle:Property')->...
asked by 11.06.2015 / 15:17
1
answer

Paste $ request values

I would like to get all the values of a given key from a request. Ex Request:    nnmSoftware = 7-Zip & idSoftware = 1181 & nmLocal = Enterprise & network = 1 & nmSoftware = account-plugin-aim & idSoftware = 1 & nmocal = Enterprise &   refe...
asked by 03.02.2015 / 17:02
3
answers

Symfony installation error

I want to learn Symfony and then I did the installation as they speak on the site: composer create-project symfony/framework-standard-edition meuprojeto/ '~2.5' Until then I installed it, in the end I did not want to install the demo...
asked by 01.09.2014 / 16:43
1
answer

Task Scheduler on Heroku to run PHP script

I need to run a PHP script on Heroku with the task scheduler, I'm reading this article but I'm not understanding. Any idea?     
asked by 09.09.2014 / 21:04
1
answer

Generate entity using a particular connection

Consider the following configuration file: config.yml doctrine: dbal: default_connection: slqX45 connections: slqX44: driver: pdo_mysql host: "%database_host%"...
asked by 04.07.2016 / 14:24