Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
60 views

I need to fix an old system that has an API built in Symfony and has packages mananged with composer. Basically it has an export routine and an import routine that was working and doesn't work anymore....
PromelitDev's user avatar
1 vote
1 answer
116 views

I have problem with SQL query in Symfony (3.2.6). I am trying to run this code: $em->persist($AxfonePushPayment); $query = $em->createQuery("SELECT parking_ticket_settings.id FROM ...
kuznecov's user avatar
0 votes
1 answer
359 views

I have 2 form type that display 2 selects $builder ->add('control1', EntityType::class, [ 'label' => 'Country', 'class' => Country::class, ]) ...
user3174311's user avatar
  • 2,033
0 votes
1 answer
450 views

I am new in Symfony and i am working on existing project. I have created crud with doctrine:generate:crud, but application returns me 404 page not found. I was debugging it with debug:router and ...
kuznecov's user avatar
-1 votes
1 answer
2k views

I know that Symfony 3.2 is not maintained for very long time, but it happens that my company use it. And now we have a problem with authentifacation. We have widget that can be (and is) installed on ...
Alexey  Kolchin's user avatar
0 votes
1 answer
695 views

I have date with time string: array(2) { ["available_from"]=> string(16) "2020-07-30T12:26" ["available_to"]=> string(16) "2020-07-30T23:32" } Input: <...
azez09's user avatar
  • 1
0 votes
0 answers
256 views

I'm trying to enhance an old project built with symfony 3.2 but i'm facing a weird issue. I'm just trying to get some data in my controller to send it to the view. But, for some reason i can't reach ...
ObiBert's user avatar
0 votes
0 answers
50 views

Here's my problem. In my project, I have a one-to-many relationship between class FactureAchat and LigneFactureAchat, when I add a Facture the products are added in the Table ligne_facture_achat ...
Amal Regaieg's user avatar
0 votes
1 answer
908 views

Hi I'm fresher for symfony . when i execute the below code it will show error.i installed all the assets of symfony.help me to clear this..! <?php namespace App\Controller; use Symfony\Component\...
Ramsurathkumar.S's user avatar
1 vote
1 answer
2k views

I have a Symfony 3.2 app. I created a command to run some background task. I have to know when the command finished even if it resulted in an exception or fatal error. My first idea was to surround ...
Martin Dimitrov's user avatar
0 votes
2 answers
650 views

I am using Symfony 3.2. I have a text field on a Symfony form. I would like to apply a "sanitize" function on form submission. What is the best way to do this? Here is a snippet of the form. The filed ...
user3106759's user avatar
0 votes
0 answers
248 views

I'im using symfony 3.2 and ObHighchartsBundle , I'd like to know how to display many charts in the same page. Right now I'm able to display only one chart called "statMontant". I'd like to display the ...
RIAHI SOULEF's user avatar
0 votes
0 answers
72 views

I'm developing a website using Symfony 3.2, and it worked perfectly well on my machine. It also worked perfectly well when I pushed it on our pre-production server. But then when I pushed it on our ...
ntyss's user avatar
  • 101
0 votes
2 answers
606 views

I'm working with Sylius framework. I'm following the guide to customize models. I am trying to add a field notice to a model Taxon which is already overridden in my project. For that, I added the ...
gvlasov's user avatar
  • 20.3k
0 votes
1 answer
5k views

I updated my website from Symfony 3.2 to Symfony 4, by creating a new symfony4 skeleton and moved the source code from symfony3.2 to symfony4. I had been made the changes as mentioned in Upgrading ...
A.JRJ's user avatar
  • 371
1 vote
1 answer
990 views

I want to override the error templates in Symfony 3. I've started by creating a TwigBundle folder withe the personalised twig. app/ └─ Resources/ └─ TwigBundle/ └─ Exception/ ├─ ...
KubiRoazhon's user avatar
  • 1,839
0 votes
0 answers
115 views

I came here to relate a problem, i do a recursive function to generate some option for a product. The problem is when i set required to true, it's already false. I tryed to force it at true but ...
Lunix's user avatar
  • 27
0 votes
1 answer
84 views

{{dump(states)}} this returns FormView {#5921 ▼ +vars: array:33 [▼ "value" => [] "attr" => [] "form" => FormView {#5921} "id" => "States" "name" => "States" "...
A.JRJ's user avatar
  • 371
0 votes
1 answer
419 views

I have an address form type that required zipcode. here's the codes class AddressType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { ...
user3818576's user avatar
  • 3,537
1 vote
2 answers
688 views

I created an image using the imagejpeg() function within my entity class $imageSize = $this->_getDefaultImageSize(); $image = imagecreate($imageSize['width'], $imageSize['height']); ...
Stefan K.'s user avatar
1 vote
4 answers
583 views

I have to convert a string input to date "1990/07/22" to 22/07/1990 as date,My function is as follows as: public function($date){ $date_format_sec = strtotime($date); $date_of_birth = new \...
A.JRJ's user avatar
  • 371
0 votes
1 answer
158 views

In my application form updation twig is as follows: <div class="form-group"> {{form_label(formUser.name)}} : <input class="form-control" disabled="disabled" value="{{formUser.name....
A.JRJ's user avatar
  • 371
0 votes
0 answers
599 views

I am working on a legacy application and I now need to change an existing table (called categories) so that it has a parent_id field which is a foreign key to the primary key of it’s own table (the ...
AntonioCS's user avatar
  • 8,496
0 votes
2 answers
1k views

public function save($itemId, $invoiceName) { $query = " INSERT INTO invoice (item_id, invoice_name) VALUES (" . $itemId . ",'" . $invoiceName . ") "; $connection = $...
Ydrus's user avatar
  • 11
2 votes
1 answer
6k views

Heroku Log : > Incenteev\ParameterHandler\ScriptHandler::buildParameters Creating the "app/config/parameters.yml" file > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::...
symguy's user avatar
  • 21
2 votes
0 answers
3k views

I am trying to upgrade Symfony on Windows 10 machine. Current version is 3.2. I've updated the composer.json package to "symfony/symfony": "3.4.*". Then I ran composer update symfony/symfony and got ...
Martin Dimitrov's user avatar
2 votes
1 answer
266 views

I observed a strange behavior of my doctrine object. In my symfony project I'm using ORM with doctrine to save my data in a mysql database. This is working normal in the most situations. I'm also ...
Ole's user avatar
  • 161
0 votes
2 answers
6k views

I'm using symfony3 and trying to install/use TwigExcelBundle on my ubuntu16 server for an excel exporting purpose. I can install it by when I try to use I get the following error : "Attempted to ...
Lacky Raz's user avatar
4 votes
1 answer
2k views

I am using sonata admin for my project as backend. I have a module and where i have status in the filter like below : $datagridMapper->add('status', '', array('label' => 'Status','field_type' ...
Parth Khatri's user avatar
1 vote
1 answer
137 views

I have a field which is non-mapped and required. $builder->add('termsAndConditions', CheckboxType::class, [ 'required' => true, 'mapped' => false, 'attr' => [ 'class' =...
Quisse's user avatar
  • 798
0 votes
1 answer
71 views

This is an excerpt from my POST data: ... lead[contacts][6][firstName]: test lead[contacts][6][id]: 543961 lead[contacts][6][lastName]: test ... lead[contacts][7][firstName]: John lead[contacts][7][...
fishbone's user avatar
  • 3,279
0 votes
1 answer
512 views

Is it possible to render an input field without id? I would like to disable it in the twig file. I want that because I have a error "non-unique id" in the chrome console. I have conducted research ...
Juanma's user avatar
  • 718
0 votes
2 answers
1k views

I have a Product Entity. Each product can have 0 or N pictures. I have a ProductPhoto Entity which has a order property (0 = first). On a page, I list all the pictures of my current product. I would ...
Eve's user avatar
  • 836
-1 votes
1 answer
39 views

I recently created a new project in Symfony 3.2 and installed via composer following https://symfony.com/doc/master/bundles/FOSUserBundle/index.html the bundle FOSUserBundle. (information : I used ORM)...
BleuBizarre's user avatar
0 votes
2 answers
219 views

I have read and re-read everywhere I could, and I am unable to find the proper answer to my problem. Here is the problem. I have 2 entities. Equipment, EquipmentPart respectively. Equipment: /** * @...
iVoidWarranties's user avatar
1 vote
1 answer
2k views

Recently, a piece of code stopped working. I haven't made any changes to it so I don't know why. Here's the code: $invites = $this->vault_em->getRepository('AppBundle:Invite\LocalInvite')->...
amacrobert's user avatar
  • 3,279
0 votes
1 answer
54 views

I didn't find any subject related to my question and my case is very particular that's why i am calling for help. I have 4 involved entities : PurchaseOrder, SapPO, project and Product. As shown ...
Houssem Balty's user avatar
-1 votes
1 answer
1k views

What are the best practices for generating a documentation (of a tool/service) in Symfony? To be a little more explicit: I want to use Markdown to write a documentation I will probably have more ...
codiga's user avatar
  • 596
3 votes
1 answer
811 views

My symfony form represents an entity Mail which has a one to many relation with another entity called Attachment. Therefore, the MailType form contains a CollectionType field for embedding its ...
fishbone's user avatar
  • 3,279
2 votes
1 answer
551 views

In app/config/config.php we can: $container->loadFromExtension('doctrine', array( 'dbal' => array( 'driver' => 'pdo_mysql', 'host' => '%database_host%', '...
remgo's user avatar
  • 23
0 votes
0 answers
193 views

I am new to Symfony. I'm working on an application where I need a cascading heritage in Doctrine, but heritage doen't appear to work : I have a mother class, "Content" : /** * Content * * @ORM\...
pushin's user avatar
  • 1
-2 votes
1 answer
370 views

I still cannot understand what happening in my server when i push my code throught the server in /public_html and wanna get the homepage of my application like this: http:/www.example.com/web/ ...
M. Hanafi's user avatar
2 votes
1 answer
193 views

My entity is : <?php namespace MainBundle\Entity; use FOS\UserBundle\Model\User as lat_users; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table(name="lat_users") * @ORM\Entity */ class User ...
Alexandre WILLEM's user avatar
1 vote
1 answer
3k views

I am facing a CORS issue when accessing Symfony REST API from angular with JWT token. IIS server has been configured to access the application with domain name and IP address. The Front end code is ...
KV90's user avatar
  • 119
-1 votes
2 answers
2k views

I am using fos bundle for Symfony and it's working fine but now I want to restrict all pages for not logged user except (login and register). How can I achieve that?
Yogesh Karodiya's user avatar
1 vote
1 answer
3k views

I'm new in Symfony! I use symfony 3. I have a search input when i type in search i want display the result in the twig file. I got the correct result send from ajax and i have a problem with display ...
chinhnguyen's user avatar
15 votes
1 answer
15k views

I create some basic command with symfony3.2 to generate some newsletter periodically I'm dealing with some issue when i want to test my symfony command with phpunit 5.5.4. It fail from the beginning: ...
ryl's user avatar
  • 363
0 votes
1 answer
188 views

i am configuring the fosrest bundle in symfony 3. But i'm gettin this error: While scanning a flow node we had this expected the node content, but found org.jvyamlb.tokens.PositionedKeyToken My ...
Álvaro's user avatar
  • 177
0 votes
2 answers
49 views

public function createGalleryAction(Request $request) { $gallery = new Gallery; $gallery_form = $this->createFormBuilder($gallery) ->add('galleryName', TextType::class, ...
Pranan Subba's user avatar
1 vote
0 answers
849 views

I want to serialize a object in Symfony 3. So I wrote this code: $serializer = $this->getContainer()->get('jms_serializer'); $context = SerializationContext::create()->enableMaxDepthChecks()-...
mgluesenkamp's user avatar

1
2 3 4 5
7