Gracias como siempre.
 
Mira estoy intentado hacer la relación de mi entidad "notices" hacia la entidad "media" y me salta el siguiente error: 
[Doctrine\DBAL\DBALException]
An exception occurred while executing 'ALTER TABLE notices ADD CONSTRAINT F
K_6E2C61D24FC2B5B FOREIGN KEY (Image) REFERENCES media__media (id)': 
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update
a child row: a foreign key constraint fails (`test_test`.`#sql-8f8_
18`, CONSTRAINT `FK_6E2C61D24FC2B5B` FOREIGN KEY (`Image`) REFERENCES `medi
a__media` (`id`)) 
[PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update
a child row: a foreign key constraint fails (`test_test`.`#sql-8f8_
18`, CONSTRAINT `FK_6E2C61D24FC2B5B` FOREIGN KEY (`Image`) REFERENCES `medi
a__media` (`id`)) 
Si te acuerdas, yo trabajo con ficheros YML para mapear las entidades con la BBDD. Esta es la relación:  
Código:
 manyToOne:
        image:
            targetEntity: Application\Sonata\MediaBundle\Entity\Media
            cascade: {  }
            mappedBy: null
            inversedBy: null
            joinColumns:
                Image:
                    referencedColumnName: id
            orphanRemoval: false
  Muy probablemente este haciendo algo mal, pero le estoy dando vueltas y nada. ¡El campo a enlazar es el "id"? 
Gracias amigo! 
Saludos