Questions tagged as 'symfony'

0
answers

Use the result of an angular service

I am working on the Backend with Symfony and the Frontend with Angular and I am being presented with the following. I have an affiliated class and another beneficiary, the beneficiary depends on an affiliate previously created, therefore, it has...
asked by 15.10.2018 / 17:24
1
answer

Regex for php, check if a variable has 1 uppercase, 1 small, 1 digit and 8 characters minimum

I have a project in php, I am quite new programming and I never touch that language, my question is basically what the title says, I need to see if a variable has 1 uppercase, 1 lowercase, 1 digit and 8 characters minimum I currently have this i...
asked by 12.07.2018 / 18:01
1
answer

Send data by ajax to controller - symfony

I am developing a web management system of shifts with symfony 3.4, jquery and ajax. In a form, the user selects a location and a date and must press a button to obtain the available shifts. I can not get the response from the server or the orde...
asked by 17.06.2018 / 23:39
2
answers

how to link symfony to a postgresql database

I have a project in symfony, but I need it to be with a database in postgresql, but when I try it it gives me the following error I do not have the xampp, in the machine I only have php and I work directly with the server that generates th...
asked by 03.05.2018 / 15:27
1
answer

Undefined method 'getArticles'. The method name must start with either findBy or findOneBy!

In my Symfony 3 project I deleted the Entity folder, inside a Bundle, but when I generate the same entities from the same database I get this error:    Undefined method 'getArticles'. The method name must start with either findBy or findOneBy...
asked by 13.05.2018 / 20:30
1
answer

Hide URL SonataBundle / Symfony

The problem is that I have a page which always shows "lapagina/web/app_dev.php/ES/" in the browser, regardless of the template you are viewing, when I add the "admin" lapagina/web/app_dev.php/ES/admin , load the dasboard of the Sona...
asked by 16.04.2018 / 11:48
0
answers

Repository from entity in symfony?

I have this code, from an entity: namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use JMS\Serializer\Annotation\Type; use JMS\Serializer\Annotation\Exclude; use JMS\Serializer\Anno...
asked by 14.12.2018 / 14:06
2
answers

Make insert in table if there is no POSTGRESQL record

I am trying to make an insert in a table but only insert IF the record I want to enter does not exist, in the case that there is already doing nothing. I've tried it this way, I've just registered the names but the insert is as is: INSERT I...
asked by 14.11.2018 / 17:08
2
answers

Error installing Symfony

I followed the instructions to install symfony from the official website but when I entered the command: php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));" it gives me the following error:    PHP...
asked by 11.10.2017 / 05:15
1
answer

Export to excel in Symfony 1.4

I'm working with Symfony 1.4 and I have a problem. Following a query, a view is generated that shows the data of a person and their cars. This data I want to export to excel. It works well for me, except that, if that person has more than one ca...
asked by 12.04.2018 / 22:00