src/Sp/FixtureDumper/Generator/AbstractGenerator.php
public function generate(ClassMetadata $metadata, array $models = null, array $options = array())
    {
        $resolver = new OptionsResolver();
        $resolver->setRequired($this->getRequiredOptions());
        $this->setDefaultOptions($resolver);
        $options = $resolver->resolve($options);
        if (null === $models) {
            $models = $this->getModels($metadata);
        }

        $preparedData = array();
        foreach ($models as $model) {
            $data = array();
            $data['fields'] = $this->processFieldNames($metadata, $model);
            $data['associations'] = $this->processAssociationNames($metadata, $model);

            $preparedData[$this->namingStrategy->modelName($model, $metadata)] = $data;
        }

        return $this->doGenerate($metadata, $preparedData, $options);
    }
public function generate(ClassMetadata $metadata, array $models = null, array $options = array())
    {
        $resolver = new OptionsResolver();
        $resolver->setRequired($this->getRequiredOptions());
        $this->setDefaultOptions($resolver);
        $options = $resolver->resolve($options);
        if (null === $models) {
            $models = $this->getModels($metadata);
        }

        $preparedData = array();
        foreach ($models as $model) {
            $data = array();
            $data['fields'] = $this->processFieldNames($metadata, $model);
            $data['associations'] = $this->processAssociationNames($metadata, $model);

            $preparedData[$this->namingStrategy->modelName($model, $metadata)] = $data;
        }

        return $this->doGenerate($metadata, $preparedData, $options);
    }
@param \Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata
@param array|null                                         $models
@param array                                              $options

@return string