Inheritance: extends RestServiceEntity
 /**
  * Create DB-Connected configuration based on entity
  *
  * @param  DbConnectedRestServiceEntity $entity
  */
 public function createDbConnectedConfig(DbConnectedRestServiceEntity $entity)
 {
     $entity->exchangeArray(array('table_service' => sprintf('%s\\Table', $entity->resourceClass)));
     $config = array('zf-apigility' => array('db-connected' => array($entity->resourceClass => array('adapter_name' => $entity->adapterName, 'table_name' => $entity->tableName, 'hydrator_name' => $entity->hydratorName, 'controller_service_name' => $entity->controllerServiceName, 'entity_identifier_name' => $entity->entityIdentifierName))));
     $this->restModel->configResource->patch($config, true);
 }
 public function getCreationPayload()
 {
     $payload = new DbConnectedRestServiceEntity();
     $payload->exchangeArray(array(
         'adapter_name'               => 'DB\Barbaz',
         'table_name'                 => 'barbaz',
         'hydrator_name'              => 'ObjectProperty',
         'entity_identifier_name'     => 'barbaz_id',
         'resource_http_methods'      => array('GET', 'PATCH'),
         'collection_http_methods'    => array('GET', 'POST'),
         'collection_query_whitelist' => array('sort', 'filter'),
         'page_size'                  => 10,
         'page_size_param'            => 'p',
         'selector'                   => 'HalJson',
         'accept_whitelist'           => array('application/json', 'application/*+json'),
         'content_type_whitelist'     => array('application/json'),
     ));
     return $payload;
 }