the Symfony 3.x specific tag. Use it in addition to the symfony3 tag if your question is specific to any version of Symfony 3.
Questions tagged [symfony3.x]
174 questions
0
votes
2 answers
FOSUserBundle : Authenticate user based on email password and third field
How to override FOSUserBundle such that I may be able to register/authenticate a user based on the combination of:
Email ID + Password + GroupID and not just email + password
So the email will no longer be unique, but the combination of email +…

Ren
- 330
- 6
- 23
0
votes
1 answer
CKEditor Plugin 'save' (egeloen / ivoryckeditor) in Symfony 3 not showing the save button
I successfully installed and integrated the CKEditor (4.7.3) in my Symfony 3.3.10 project using the ckeditor-bundle from egeloen (ivoryckeditor).
I am now trying to get the "Save" Plugin to work.
I copied the plugin folder into my web-folder.
This…

user3440145
- 793
- 10
- 34
0
votes
1 answer
How to make message notification in symfony?? exampe message[1]
Someone told me to use flag, but I'm using in base template(where I have menus) to display the message notification which was unable to do.
class countMail extends Controller{
public function indexAction(){
$count_em =…

Pranan Subba
- 186
- 3
- 10
0
votes
1 answer
Hide a field according to its role Symfony 3
First sorry for my english because is not great!
So I want to hide a field according to it's role because if I make with Twig the field to display on the bottom form
My code for understand, this's my LinkType :
public function…

mohamed konate
- 3
- 2
0
votes
1 answer
put data into CKEditor field with ajax
I have a modal for the modification of a entity in my project. When I put data in the modal, only the CKeditor field is empty.
I have tested different solutions but so far none of them work. I checked, the data I want to put in the CKEditor field…

Verdouze
- 417
- 2
- 9
- 25
0
votes
1 answer
Symfony - The mappings are inconsistent with each other - The association refers to the inverse side field which does not exist
Hello I try to make a OntToMany ond ManyToOne connexions but I have this following errors:
The mappings MySqlBundle\Entity\GENERAL\Categorie#SOCIETES and MySqlBundle\Entity\GENERAL\Societe#CATEGORIE are inconsistent with each other.
The…

Verdouze
- 417
- 2
- 9
- 25
0
votes
1 answer
Symfony - console commands unreachable when running unit tests
I'm trying to run a fixture command from php code while running my phpunit tests.
It ends up in the following error:
Symfony\\Component\\Console\\Exception\\CommandNotFoundException] There are no commands defined in the \u0022doctrine:fixtures
I…

Roberto Rizzi
- 1,525
- 5
- 26
- 39
0
votes
2 answers
How to chek if the gallery name exist in DB?
public function createGalleryAction(Request $request) {
$gallery = new Gallery;
$gallery_form = $this->createFormBuilder($gallery)
->add('galleryName', TextType::class, array('label' => 'Gallery Name'))
->add('Add',…

Pranan Subba
- 186
- 3
- 10
0
votes
2 answers
Insert into a symfony 3 table
I need to make a simple insertion in the database,
Here is the code in the controller:
public function verifCreateOrder(Request $req){
$store = 1;
$provider =2;
$creation = $creation_start = $req->get('creation_start');
…

Sofian
- 123
- 1
- 3
- 11
0
votes
1 answer
Symfony 3, is it possible to use a variable in a path?
I am working on a project, and I would like to be able to use variables in paths directly. This may seem strange, but imagine I have
mysite.org/admin
I take precautions to stop people accessing admin, ofcourse. But for peace of mind, and the clients…

Jason Stephenson
- 210
- 1
- 8
0
votes
0 answers
Where can I find vhost configuration for symfony3
I want to access my site via testing.dev instead of localhost:8000.
How can I achieve this?
DocumentRoot "C:/Websites/test"
ServerName www.testing.dev
ServerAlias testing.dev
I googled the problem,…

Refilon
- 3,334
- 1
- 27
- 51
0
votes
1 answer
I can't display embedded, nested form in Symfony 3
I have a big issue because I can't find any solutions for my problem on Internet. I work on a Post Entity from which I want to add Images Entities. The idea is when I log in my app, I can write a post and upload one or n images. After that, the user…

Clément MARTZLOFF
- 342
- 2
- 9
0
votes
1 answer
Symfony 3 update dependencies conflicts
Trying to update the project from Symfony 2.7 to 3.x, when i run a composer update i get dependency conflicts between the different bundles i'm using, for example:
friendsofsymfony/jsrouting-bundle 1.5.3 requires symfony/framework-bundle…

NZED
- 15
- 8
0
votes
1 answer
Error during form generation: Could not load type "CustomType"
There is an error during execute the createForm method.
InvalidArgumentException: Could not load type "ArticleType"
My symfony version is 3.3.*.
I tried to execute the createForm method with Article::class instead of ArticleType::class.
Here is my…

Umut Çağdaş Coşkun
- 1,197
- 2
- 15
- 33
0
votes
0 answers
Symfony 3.3: FileNotFoundException after moving/renaming uploaded file
I have a form with a file upload field (limited to PDF format only). After the form has been submitted and a valid uploaded file is present, I rename and move the file. Then I try to display the page with the form again - at which point the…

willherzog
- 61
- 1
- 9