src/Admin/Model/DoctrineRestServiceModel.php
/**
     * Create Doctrine configuration
     *
     * @param DoctrineRestServiceEntity $details
     * @param string $entityClass
     * @param string $collectionClass
     * @param string $routeName
     */
Create Doctrine configuration
@param DoctrineRestServiceEntity $details
@param string $entityClass
@param string $collectionClass
@param string $routeName
Create Doctrine configuration @param DoctrineRestServiceEntity $details @param string $entityClass @param string $collectionClass @param string $routeName
public function createDoctrineConfig(DoctrineRestServiceEntity $details, $entityClass, $collectionClass, $routeName)
    {
        $entityValue        = $details->getArrayCopy();
        $objectManager      = $this->getServiceManager()->get($details->objectManager);
        $hydratorStrategies = [];
        $config = [
            'zf-apigility' => [
                'doctrine-connected' => [
                    $details->resourceClass => [
                        'object_manager' => $details->objectManager,
                        'hydrator' => $details->hydratorName,
                    ],
                ],
            ],
        ];
        $this->configResource->patch($config, true);
    }
public function createDoctrineConfig ( DoctrineRestServiceEntity $ details , $ entityClass , $ collectionClass , $ routeName ) { $ entityValue = $ details -> getArrayCopy ( ) ; $ objectManager = $ this -> getServiceManager ( ) -> get ( $ details -> objectManager ) ; $ hydratorStrategies = [ ] ; $ config = [ 'zf-apigility' => [ 'doctrine-connected' => [ $ details -> resourceClass => [ 'object_manager' => $ details -> objectManager , 'hydrator' => $ details -> hydratorName , ] , ] , ] , ] ; $ this -> configResource -> patch ( $ config , true ) ; }
Create Doctrine configuration
 @param DoctrineRestServiceEntity $details
 @param string $entityClass
 @param string $collectionClass
 @param string $routeName
Create Doctrine configuration @param DoctrineRestServiceEntity $details @param string $entityClass @param string $collectionClass @param string $routeName
// The abstract_factories key is set to the value so these factories do not get duplicaed with each resource