Questions tagged as 'symfony-2'

1
answer

Symfony-2 - Location of assets

My application is being made using Symfony-2, and this application I will not distribute. Ideally, should I keep my assets in AppBundle/Resources/public/ and apply console assets:install , or should I leave my assets straight in...
asked by 10.03.2016 / 20:15
1
answer

Start a project in Symfony2 with APIRest

I'm new to symfony2 and I have a whole project already in web working that I developed to learn and have a differential when looking for an internship, but now I would like to start learning how to use the part of the API understood by the refer...
asked by 11.12.2015 / 14:39
1
answer

Doctrine2 + Symfony2: Bringing more than one entity in queryBuilder

Hello. I have the following question. I'm doing a select in several different tables, I want to bring some of them. But all the way I try, or it only returns the main or an error. Can you help me? $em = $this->getDoctrine()->ge...
asked by 26.10.2015 / 19:18
1
answer

How to use DataFixtureLoader

I'm relying on this tutorial , but I have the Country and State classes. I'm trying to import the data using the command: php console doctrine:fixtures:load When I run it works for CountryLoader , it loads the data and stores it in the da...
asked by 07.04.2015 / 19:00
1
answer

Create list of entities in FormBuilder

I have a User CRUD and a permissions CRUD. The idea is now to add a user's CRUD tab to allow you to select permissions. The starting idea is to have a complete list of all possible permissions with a checkbox next to each other. Then the user...
asked by 25.03.2015 / 19:11
2
answers

Comparison of dates

I want the message to appear when the user enters no date or the start date is greater than the end date. The code I made was this: /** * @Assert\True(message = "Erro! Verifique as horas. Data inical não pode ser maior que a data final.") */...
asked by 11.02.2015 / 16:02
2
answers

Find entity's data for another

I have an Intervention entity, another of Failure and another of Prevista and I wanted to go buck the data of these entities and put everything together in a table. The table that puts everything together will be within the entity Interventio...
asked by 12.02.2015 / 12:43
1
answer

Sort by date

Look, is it possible to sort a table by date in javascript, symfony2 or jquery? I have a table with several data and records and I would like to sort the records by date.     
asked by 09.02.2015 / 17:30
1
answer

How to execute methods of all classes that extend an interface in symfony

I needed something similar to console doctrine:fixtures:load in relation to class DataFixtureLoader and interface OrderedFixtureInterface ie I want to make a Command where it looks for all classes that have extended t...
asked by 11.04.2015 / 21:05
1
answer

Implement method __toString ()

I have a folder Previta and when I enter the path of previta.new gives me error.   The "__toString ()" method was not found on the objects of type "RoqSys \ Control \ MaintenanceBundle \ Entity \ Machine" passed to the choice field. To read a...
asked by 12.02.2015 / 16:03