24 lines
899 B
Markdown
24 lines
899 B
Markdown
|
---
|
||
|
title: danog\MadelineProto\Db\DbPropertiesTrait: Include this trait and call DbPropertiesTrait::initDb to use MadelineProto's database backend for properties.
|
||
|
description: You will have to define a `$dbProperties` static array property, with a list of properties you want to store to a database.
|
||
|
|
||
|
---
|
||
|
# `danog\MadelineProto\Db\DbPropertiesTrait`
|
||
|
[Back to index](../../../index.md)
|
||
|
|
||
|
> Author: Daniil Gentili <daniil@daniil.it>
|
||
|
|
||
|
|
||
|
Include this trait and call DbPropertiesTrait::initDb to use MadelineProto's database backend for properties.
|
||
|
|
||
|
You will have to define a `$dbProperties` static array property, with a list of properties you want to store to a database.
|
||
|
|
||
|
#### See also:
|
||
|
* [For a list of allowed property types](./DbPropertiesFactory.md)
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
---
|
||
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it). ## Properties
|
||
|
* `$dbProperties`: `array<string, DbPropertiesFactory::TYPE_*>`
|