sonata-project/SonataNewsBundle — Issue #45: Doctrine ORM Can only post 1 comment
Author: heyflynn
Created: 2012-01-25 19:33:42+00:00
State: open

After trying to implement this bundle I ran into an issue that would only allow 1 comment to be posted per post. The problem is in orm mapping of the SonataNewsExtension of the DCI. See line 228 as comments post field is set at OneToOne, should be ManyToOne.

228 : $collector->addAssociation($config['class']['comment'], 'mapOneToOne', array(

replace with

228: $collector->addAssociation($config['class']['comment'], 'mapManyToOne', array(