public function __construct($underscoreSeparatedKeys = true) { parent::__construct($underscoreSeparatedKeys); // TODO add girl reference //$this->setNamingStrategy(new MapUnderscoreNamingStrategy(['nightclub_id' => 'nightClubReference'])); $this->addStrategy('rating', new HasOneStrategy(new RatingObject(), false)); /* $this->addStrategy( 'nightclub_id', new ReferenceEntityCompressStrategy(new NightClubReference(), false) ); */ }
public function __construct($underscoreSeparatedKeys = true) { parent::__construct($underscoreSeparatedKeys); $this->addStrategy('rating', new HasOneStrategy(new RatingObject(), false)); }