Most voted "symfony-2" questions
Symfony 2 is a web framework written in PHP that follows the MVC (model-view-controller) paradigm. Available under the MIT License, differs from Version 1 basically in directory structure, configuration form
Learn more…80 questions
Sort by count of
-
0
votes2
answers52
viewsFetch data from Entity’s to another
I have an Intervention Ntity, a Breakdown and a Forecast One and I wanted to go and eat the data of these Ntity and put it all together in one table. The table that joins everything will be inside…
-
0
votes1
answer117
viewsService to manage PHP sessions (Symfony2)
I need to create a PHP Service to manage the Sessions of an application, someone has a practical example for this? PS: I am a beginner! :)
-
0
votes1
answer421
viewsUpdate one entity after entering data into another
I urgently need to find some way to resolve this problem that has trapped me for over a week. Once solified, I believe I can use this medium to do other operations that my system will have. I have…
-
0
votes1
answer113
viewsStart a project on Symfony2 with Apirest
I am new to symfony2 and I have a whole web project already working that I developed to learn and have a differential when it comes to looking for an internship, but now I would like to start…
-
0
votes1
answer112
viewsI created my entity in symfony - Crud
I used the command: php bin/console generate:doctrine:crud it generated all pages and controllers in my project, but when I enter the route to create a user of the following error: Expected argument…
-
0
votes1
answer103
viewsCreate list of entities in Formbuilder
I have a User CRUD and a CRUD of permissions.The idea now is to add a tab to the user’s CRUD to allow selecting permissions. The initial idea is to have a complete list of all possible permissions…
-
0
votes1
answer36
viewsSymfony-2 - Location of Assets
My application is being made using Symfony-2, and this application I will not distribute it. Ideally I keep my Assets on AppBundle/Resources/public/ and keep applying console assets:install, or…
-
0
votes2
answers692
views -
0
votes1
answer44
viewsHow to use Datafixtureloader
I’m basing myself 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 execute him works for the…
-
0
votes1
answer50
viewsSymfony Custom Field 2
How to write a custom form field on Symfony2? Since in this form should appear: A field of type Dropdown with the label City; Another field of the kind number alongside the label door number.…
-
0
votes1
answer32
viewsUpdate site Symfony2
good morning. I’m modifying a site made in Symfony2 and I’m having difficulty editing content. I take one of the files. Twig of the server that corresponds to the index or to one of the parts of the…
-
0
votes1
answer25
viewssymfony2 more than one security voter for one Bundle
I’m having trouble creating more than one voter for each class the idea is to have a voter for each class to be able to realize access security to it, the first voter worked but the second ever…
-
0
votes1
answer52
viewsTwing and Controller on symfony
I have a form made in twing and I want to pass the values of this form to my database and for that I have to send to the controller, no?
-
0
votes0
answers58
views'redirectToRoute' with query Parameters - Symfony2
I have a route /curso/{slug} which makes a 301 redirect to another route. That route /curso/{slug} can receive some parameters per query (example: /curso/{slug}?query=1234), but redirect to the…
-
0
votes1
answer153
viewsDoctrine2 + Symfony2: How to bring more than one entity into queryBuilder
Hello. I have the following doubt. I’m doing a select on several different tables, I want to bring some of them. But any way I try, it either returns only the main or a mistake. Can you help me? $em…
-
0
votes0
answers30
viewsSymfony2 - Problems with Doctrine2 Preupdate
My entity Budget has some methods that are executed in PrePersist and PreUpdate. It’s them: /** * @return \DateTime */ public function generateNextPaymentDate() { if ($this->getStartsAt() !==…
-
0
votes0
answers251
viewsParse a page
I am trying to get the information from a page through the url. I am developing in symfony and using simple_html_dom or Crowler. But I’m nowhere near doing what I need to do. The page I’m accessing…
-
0
votes1
answer90
viewsCreate query with date range in Doctrine 2.0
I’m trying to get the records that are processed No (Datetime) less than 2 days from the current date. I am starting from the following reasoning. public function…
-
0
votes0
answers103
viewsSymfony - Installation Problems with Windows 8
I am trying to install Symfony on Windows 8, but I get the Windows message that "This application cannot run on your PC". This occurs when, through the CLI, I try the command symfony…
-
0
votes1
answer20
viewsUse the same Preview for multiple forms
In the application there are 2 login forms, one for customers and another for administrators. The two forms use the same Prior: security: providers: form_login: entity: { class:…
-
0
votes1
answer41
viewsUse the __get method inside the controller
In my entity I have the following magic method: public function __get($key) { return null; } On my controller I have the following code: $clients = $this ->getDoctrine()…
-
0
votes2
answers57
viewsUsing Innerjoin with Limit
I have the table A with a relationship OneToMany with the table B. The table A is small, has 10 records. The table B has N records for each record in the table A. From X to X minutes a script is…
-
0
votes1
answer29
viewsChange form before submitting it
There are 2 entities: Client and Apps. The association between client and app is made in the entity Client as follows: class Clients { /** * App id * * @ManyToOne(targetEntity="Apps",…
symfony-2asked 8 years, 5 months ago Filipe Moraes 8,737 -
0
votes1
answer66
viewsUse two fields in a Manytoone relation
There is the following relationship between two entities: class Clients { //... /** * Dealership id * * @ManyToOne(targetEntity="Dealerships", inversedBy="clients", fetch="EXTRA_LAZY") *…
-
0
votes1
answer37
viewsGenerate entity using a given connection
Consider the following configuration file: config.yml doctrine: dbal: default_connection: slqX45 connections: slqX44: driver: pdo_mysql host: "%database_host%" port: "%database_port%" dbname:…
-
0
votes1
answer157
viewsHow to use Fosoauthserverbundle authentication?
I followed a tutorial to configure the authentication via Rest using Basic Symfony 2, Fosrestbundle, Fosuserbundle and Fosoauthserverbundle perfectly worked, even if someone has any questions in…
-
0
votes1
answer107
viewsDompdf does not load information
I am using PHP 5.4.43 in a Symfony 2.3.36 application and my PDF is coming blank. Solicitacaopdf.html.Twig Test 1 Solicitacaocontroller.php /** * @Route("/solicitacaopdf") */ public function…
-
-1
votes2
answers210
viewsHow to add twitter-bootstrap to a symfony 2 project?
I created a symfony 2 project, now I want to include twitter-bootstrap in this project. How to make this inclusion?
-
-2
votes2
answers409
viewsUnable to create the cache directory (/cache/)
After I installed Fedora, while trying to log into my application with Symfony2, I cannot fix this error: Runtimeexception in bootstrap.php.cache line 2671: Unable to create the cache directory…
-
-3
votes1
answer129
viewsError installing Symphony: fopen failed to open stream: Unable to find the socket transport "http"
I’m following the tutorial for the installation of symfony, but an error occurs while running it [GuzzleHttp\Exception\RequestException] Error creating resource: [message]…