Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

350
Vistas
Symfony 3/Doctrine - populate table with some rows while creating table schema

I want to fill a database table as soon as it is created first time, may be with running the following command:

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

Basically, this will be a static table with some static data. I need to do this in that way because the database will be created dynamically. So cannot populate that by hard coding.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

With datafixturesBundle .

It's really easy to implement just follow the tutorials and if you find problems just ask me .

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

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda