PHP Class yii\test\DbFixture

DbFixture provides the [[db]] connection to be used by DB fixtures. For more details and usage information on DbFixture, see the guide article on fixtures.
Since: 2.0
Author: Qiang Xue ([email protected])
Inheritance: extends Fixture
Afficher le fichier Open project: yiisoft/yii2 Class Usage Examples

Méthodes publiques

Свойство Type Description
$db the DB connection object or the application component ID of the DB connection. After the DbFixture object is created, if you want to change this property, you should only assign it with a DB connection object. Starting from version 2.0.2, this can also be a configuration array for creating the object.

Méthodes publiques

Méthode Description
init ( )

Method Details

init() public méthode

public init ( )

Property Details

$db public_oe property

the DB connection object or the application component ID of the DB connection. After the DbFixture object is created, if you want to change this property, you should only assign it with a DB connection object. Starting from version 2.0.2, this can also be a configuration array for creating the object.
public $db