Skip to content
Snippets Groups Projects
Verified Commit fb0124ff authored by Jiří Pudil's avatar Jiří Pudil
Browse files

fix readme

parent 11e28966
No related branches found
No related tags found
No related merge requests found
Pipeline #59193 passed
......@@ -449,7 +449,7 @@ enum Status: string {
case PUBLISHED = 'published';
}
$statusType = EnumType::of(Status::class);
$statusType = EnumType::of(Status::class, new Database\NamedType(new Database\Identifier('public', 'status')));
```
##### Composite types
......@@ -490,10 +490,6 @@ $moneyType = new class extends CompositeType {
Similarly to arrays, in PostgreSQL, composite type fields are always nullable. However, `CompositeType` rejects null values except in positions where they are explicitly allowed:
```php
$nullableDateArrayType = ArrayType::of(NullableType::of(new DateType()));
```
```php
$moneyType = new class extends CompositeType {
public function __construct()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment