Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

358
Views
Symfony 3/Doctrine: rellena la tabla con algunas filas al crear el esquema de la tabla

Quiero llenar una tabla de base de datos tan pronto como se cree por primera vez, puede ejecutar el siguiente comando:

 php bin/console doctrine:schema:update --force --em=some_connection

Básicamente, esta será una tabla estática con algunos datos estáticos. Necesito hacer esto de esa manera porque la base de datos se creará dinámicamente. Por lo tanto, no se puede completar eso mediante codificación rígida.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Con datafixturesBundle.

Es realmente fácil de implementar, simplemente siga los tutoriales y si encuentra problemas, solo pregúnteme.

http://symfony.com/doc/current/bundles/DoctrineFixturesBundle/index.html

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!