0
votes
0answers
2 views

FOSUserBundle : UserInterface & inheritance mapping

How to create user with FOSUserBundle::UserInterface? Then how to add inheritance mapping to my user class? I've try it now a wek ago but not working... Error saying that my class shoulb be abstract, ...
0
votes
0answers
19 views

Behat base_url issue

I access my page at http://web.dev/web/app_behat.php and it works when I do it manually in browser. So I set base_url: "http://web.dev/web/app_behat.php/" and I get no route matched for any route ...
-1
votes
2answers
35 views

CONCAT to concat two $_GET function

*i have written insert code in doctrine like this $social = new Entities\SocialKeyword; $social->setEventId($_GET["eventId"]); $social->setHashtag($_GET["hashtag"]); ...
0
votes
0answers
32 views

when form update, $form->isValid() failed

When the form is submitted, $form->isValid() verification fails. The page contains {{ form_widget(edit_form._token) }}. But when I write var_dump( $editForm->getErrorsAsString() ) it does not ...
0
votes
1answer
19 views

json_decode and StackExchange api

I'm trying to use the V2.2 of StackExchange api with PHP. I'm using the Symfony project with Kriswallsmith's buzz library. The problem comes when I try to print the content of response of HTTP ...
0
votes
3answers
28 views

Integrating Twitter Bootstrap 3.2 on a Symfony 2.3 project

I tried to integrate Twitter Bootstrap 3.2 on my Symfony 2.3 project. Just found Tutorials for Bootstrap 3.0 with leafo/lessphp , but this is not supported anymore and in addition it is not working ...
-1
votes
1answer
31 views

Symfony2 REST API - Partial update

I'm building a REST API with FOSRestBundle in Symfony2. I'm using forms to create and update entities with Doctrine2. Everything works fine if I send all form fields. Example: ...
1
vote
2answers
37 views

Issues with form inheritance

I have a PersonType form and then I have LegalPersonType and NaturalPersonType forms and both extends from PersonType since they have a common field on that form (mapped at Entity level). For example, ...
-1
votes
0answers
30 views

Is Symfony2 a good framework? [on hold]

I work with web development for some years using Zend and Yii Framework but yesterday I decided to try Synfony2. By seeing a lot of people using and talking about it I was really optimistic but I have ...
0
votes
3answers
25 views

Overiding FOSUserBundle Register Form

I know this question is asked on and on, but i just can't find any simple answer. I'm currently trying out FosUserBundle which is pretty nice, but i have a very basic and simple front-end problems : ...
0
votes
1answer
10 views

Stalled RedKiteCMS install: “The child node ”db_driver“ at path ”fos_user“ must be configured”

I've followed their instructions to the point where the command php app/rkconsole redkitecms:install --env=rkcms results in ...
0
votes
1answer
19 views

Symfony2 Swiftmailer Service Definition does not Exist

I am trying to override the default transport for Swiftmailer by using my own service. This would allow me to use the same method calls as you would with Swiftmailer such as setTo, setSubject,attach, ...
0
votes
2answers
29 views

How to display alert or info messages in Symfony2 after a server response without reloading the page

I am building an admin application for opticians with Symfony2. When the admin adds a new customer to the database, my controller checks if the customer name is duplicate or not. I want to display a ...
0
votes
1answer
37 views

Symfony Joining Related Records

I am new to Symfony and going through the book on Symfony website and to be exact this section. In the first example the following function is used to join the two tables product and category and it ...
-2
votes
3answers
46 views

Error generating entity with Symfony2

I am generating an Entity from php Class: <?php // src/Printing/Productesbundle/Entity/User.php namespace Printing\ProductesBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * ...
0
votes
0answers
28 views

Make normal tables with doctrine query builder without relations between entities

I have a recurent problem with symfony and doctrine. I have to play in the database of another application so I can not set relationships between entity. When I want to do a left join on some ...
0
votes
1answer
30 views

Symfony 2.5 Enum field

I want use Symfony2.5 and Doctrine with my existing database. When I'm usgin command: php app/console doctrine:mapping:import --force MyBundle xml I get an error: php app/console ...
0
votes
0answers
22 views

The requested URL /solr/admin/ping was not found on this server

I am using nelmio/solarium-bundle. I have configured this bundle but I have error in running this test file: Symfony/vendor/solarium/solarium/examples/1.1-check-solarium-and-ping.php This is ...
0
votes
1answer
19 views

FOSUserBundle Authentication not working on production server

I am new to Symfony, and probably thats why i don't seem to be able to target where the certain bugs generate from. A new problem popped up when i put my site on the production server, the ...
0
votes
2answers
24 views

Doctrine 2 - Cannot cascade delete entities with bidirectional relations

I'm getting a foreign constraint violation when trying to cascade delete entities having one-to-one and one-to-many bidirectional relations. Here are my four entities related this way : the "User" ...
0
votes
1answer
25 views

FOSRESTBundle - How to create a new entity and use an existing one in ManyToOne relationship?

I have the following code: Entity: <?php class Trigger { /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * * @JMS\Expose * ...
0
votes
0answers
28 views

Dealing with Doctrine2 mapping/relationship in entities

I'm working with Doctrine mapping between three entities and some doubts come to me. The entities are Natural, Legal and Orders where one Natural can have many Orders and one Legal can have many ...
3
votes
1answer
46 views

Symfony 2.5.3 and PHP 5.6.0: incompatibility issues?

I don't know if this is a Symfony issue or a FOSUserBundle issue so I'll report here and hope get some help. I have two development instances: CentOS 6.5, PHP 5.5.16, MySQL 5.5.37 CentOS 7, PHP ...
0
votes
1answer
27 views

Symfony2 multiple file upload with add / remove method

I tried to upgrade my existing and working single file upload form to a multi file upload with add and remove function. Therefor I used this docu: ...
0
votes
1answer
14 views

How to override single template and action in Sonata Admin?

How to override single template and action in Sonata Admin? In Symfony 1 this is very simply - get this from cache and copy to folder in backend, but how can i make it in Sonata Admin?
-1
votes
1answer
26 views

A form for each entity displayed on page

my problem is quite simple but i can't find any help about it... I have to little entities, with a OneToOne relationship Task id name user_id (FK) User id name On my page, I display all the tasks ...
-1
votes
0answers
9 views

How to use MongoLab RestApi with Doctrine2?

Is there a way of how to use the MongoLab RestApi with Doctrine2? Background: I have a shared hosting with PHP 5.4 without the mongodb driver (it can't be installed there), and want to use mongodb, ...
0
votes
1answer
30 views

Symfony2 views from .twig to .php

Its way to change defult value from .twig to .php? Now trying to generate CRUD (with composer), and get views in .twig's, but i need to get it in PHP.
2
votes
1answer
28 views

Update query with LIMIT ( setMaxResults ) in doctrine2 using createQueryBuilder not working

I have the following code $qb = $this->createQueryBuilder('cs') ->update() ->set('cs.is_active', 1) ->where('cs.reward_coupon = :reward_coupon') ...
-2
votes
0answers
10 views

windows soap not found in symfony2 cron

I was make a symfony2 cron on linux OS , and want install my solution on windows , but on windows don't found soapClient in cron , but if go to url and use soapClient there work , i don't have any ...
2
votes
1answer
27 views

Symfony2 how to configure firewall to handle session for dynamic pathes ?

I'm interested in the way of configuring symfony2 security firewall to allow users to multiple login for different tenants. Is there any way to set it by the firewall path patter ? Or maybe anyone ...
0
votes
0answers
18 views

Bolt CMS fake requests for different domains

I'm trying to fake requests in a Bolt CMS. The reason is, that I want to generate a static HTML Version of the Site. Using the Sitemapextension I got a list of available URLs. I'm using the Symfony ...
0
votes
1answer
17 views

Symfony2 - routing to a fragment identifier

Is there a way to use the Symfony2 router to build URIs that include fragment identifiers? We have a page listing lots of different entities (call this the "list" page) - when a user clicks on a link ...
0
votes
0answers
12 views

Doctrine order of the fields in the schema structure

Is there a way to specify on the doctrine schema the order of the fields in the table? If you have the fields: id, status, record_date, update_date I want for them to appear in that order in the ...
0
votes
1answer
29 views

ManyToOne relationship + How to use in both directions

I have 2 tables like this: Users - UserID - Username - Password - ... Players - playerID - playerName - ... - User The relation is ManyToOne (see the picture) ...
0
votes
1answer
13 views

Symfony2 time Field Type seperate hour's and minute's input fields

I want to get two input fields for hours and minutes with the time field type. I also want to set for the input field of time and hour unique label, placeholder and / or input values. I also want to ...
0
votes
0answers
17 views

Testing Symfony controllers in isolation

I have a Symfony 2 application with the FOSRestBundle. Following standard design guidelines, I'm breaking away from the framework as soon as I can. My controller methods look as follows: public ...
2
votes
1answer
23 views

Symfony2 and doctrine: multiple relationships between two classes

I am new to Symfony2 and Doctrine. I have two classes: User and Book. Each user can like very much, quite, or dislike every book in the database. In order to describe this kind of association, I ...
0
votes
2answers
22 views

Symfony 2 blocked concurrency

I have a Symfony 2.5 application and I have some weird problems with request concurrency. To demonstrate the issue I've created two routes called /time and /sleep. The controller's bodies are quite ...
0
votes
1answer
12 views

Update Entity Form

when I try to update one of my entites, I get this exception: UndefinedMethodException: Attempted to call method "bindRequest" on class "Symfony\Component\Form\Form" in ...
0
votes
1answer
19 views

Symfony 2 Allowed memory size vendor/symfony/symfony/src/Symfony/Component/Yaml/Unescaper.php

I move my symfony2 app on the new serwer. But in my new serwer display only one error (on app.php and app_dev.php) : Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate ...
0
votes
1answer
20 views

Symfony2 FlashBag, Yii setFlash

I'm wondering why this does not have implementation in Symfony2 or Yii... My thought is: I want to place ALL errors in flash under one INDEX = 'errors' or 'success', so that i can just render them ...
1
vote
1answer
20 views

Install Thelia 2 on Mac with Php intl issue

I am trying to install Thelia 2 on XAMPP on Mac. However, I get stuck with the error message on step 2: I tried a lot of things and am pretty sure intl is enabled: $ php -m | grep intl intl Any ...
0
votes
1answer
21 views

How are 'dynamic' paremeters in symfony resolved?

I was looking through the symfony source files.and I saw this in Symfony\Bundle\SecurityBundle\Resources\config\Security.xml: <service id='security.role_hierarchy' ... > ...
1
vote
0answers
33 views

doctrine2 oneToOne composite primary key not nullable

i've a problem with a composite primary key on a OneToOne relation in doctrine. When one object has no relation (which is normally possible) i got the following error message: ...
0
votes
2answers
46 views

Trouble with symfony2 installation

I am trying to install Symfony2. What I am doing is described here http://symfony.com/doc/current/quick_tour/the_big_picture.html: curl -sS https://getcomposer.org/installer | php sudo mv ...
-3
votes
1answer
29 views

route must match Symfony2

I'm very bad with regular expressions and I have a problem with my Symfony2 routes This is my yml route ilppa_adverse_view: path: /{adverseReference}/{adverseName} defaults: ...
-1
votes
1answer
20 views

symfony2 output data from OneToMany entity TWIG

I get following exception, when trying to output all attachments ( Attachment Entity ) associated with a task. But I don't know why. An exception has been thrown during the rendering of a template ...
0
votes
1answer
19 views

Symfony \ Component \ Debug \ Exception \ FatalErrorException Call to undefined method Illuminate\Database\MySqlConnection::setReconnector()

I am creating laravel 4 login system using "Sentry by Cartalyst". Everything is running well in my localhost, But, when I upload to my shared hosting. I got some following error. Symfony \ ...
0
votes
1answer
24 views

Creating global variable yml/ini to access from controllers

I want to create my own site_globals.yml(or ini) file under app/config/ and access its variables from any controller. How do I do it? app/config/site_globals.yml(or ini) globals: name: Symfony ...