protected SqlContentEntityStorageSchema::processIdentifierSchema(&$schema, $key)
Processes the specified entity key.
Parameters
array $schema: The table schema, passed by reference.
string $key: The entity key name.
File
- core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 1063
Class
- SqlContentEntityStorageSchema
- Defines a schema handler that supports revisionable, translatable entities.
Namespace
Drupal\Core\Entity\Sql
Code
1 2 3 4 5 6 7 | protected function processIdentifierSchema(& $schema , $key ) { if ( $schema [ 'fields' ][ $key ][ 'type' ] == 'int' ) { $schema [ 'fields' ][ $key ][ 'type' ] = 'serial' ; } $schema [ 'fields' ][ $key ][ 'not null' ] = TRUE; unset( $schema [ 'fields' ][ $key ][ 'default' ]); } |
Please login to continue.