Skip to content

Commit a81ca77

Browse files
authored
fixed sequence plugin typo
1 parent f3777f6 commit a81ca77

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,13 @@ $mapper->get('shift_pattern', 1)->pattern[5]; // read element with index 5 from
254254
If you want you can use sequence plugin that generates next value based on sequence space.
255255
Or you can implement id generator using any other source, for example with raft protocol.
256256
```php
257-
$post = $mapper->getSchema()->createSpace('post');
258-
$post->addProperty('id', 'unsigned');
259-
$post->addProperty('title', 'str');
260-
$post->addProperty('body', 'str');
261-
$post->addIndex('id');
257+
$mapper->getSchema()->createSpace('post')
258+
->addProperty('id', 'unsigned')
259+
->addProperty('title', 'str')
260+
->addProperty('body', 'str')
261+
->addIndex('id');
262262

263-
$mappr->addPlugin(Tarantool\Mapper\Plugins\Sequence::class);
263+
$mapper->addPlugin(Tarantool\Mapper\Plugins\Sequence::class);
264264

265265
$entity = $mapper->create('post', [
266266
'title' => 'Autoincrement implemented',

0 commit comments

Comments
 (0)