Git Product home page Git Product logo

albumcecile's Introduction

testAlbum

A Symfony project created on November 14, 2016, 9:17 am.

suivi la procédure jusqu'au point 7.

  1. Créer un projet symfony lts : OK
  2. Créer un Bundle Media : OK
  3. Créer une entité Album : OK
  4. Générer son CRUD : OK
  5. Avoir le choix entre 3 genres et 3 support à la création d'un album : OK
  6. Mise en page simple de l'index et du formulaire : En cours
  7. Créer une entité commentaire : OK
  8. Faire une relation OneToMany: à moitié OK, mais j'ai voulu ajouter des fixture, et la jointure est pas ok dans la fixture.

Ma fixture a visiblement un problème de relation. Message d'erreur lors du fixture load: [Doctrine\ORM\ORMInvalidArgumentException]
A new entity was found through the relationship 'MediaBundle\Entity\Commentaire#albums' that was not configured to
cascade persist operations for entity: MediaBundle\Entity\Album@000000006f4b374200000000604bf91c. To solve this i
ssue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this ass
ociation in the mapping for example @ManyToOne(..,cascade={"persist"}). If you cannot find out which entity causes
the problem implement 'MediaBundle\Entity\Album#__toString()' to get a clue.

problème lors de la creation d'un commentaire:

Catchable Fatal Error: Object of class MediaBundle\Entity\Album could not be converted to string

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.