Download the PHP package stargazer-team/yii-doctrine without Composer
On this page you can find all versions of the php package stargazer-team/yii-doctrine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stargazer-team/yii-doctrine
More information about stargazer-team/yii-doctrine
Files in stargazer-team/yii-doctrine
Package yii-doctrine
Short Description Yii3 integration Doctrine extension
License BSD-3-Clause
Informations about the package yii-doctrine
Yii3 Doctrine Extension
Installation
The preferred way to install this extension is through composer:
Basic Usage
Configuration params doctrine: dbal, orm, migrations, fixture example config path example.php
DBAL
Create database:
Drop database:
Dynamic create connection:
Command:
- doctrine:dbal:run-sql
- doctrine:database:create
- doctrine:database:drop
ORM
If need default entity manager add on di.php
Use default entity manager:
If two or more entity manager use Yiisoft\Yii\Doctrine\Doctrine\DoctrineManager, find by name entity manager
Dynamic create entity manager:
Command:
- doctrine:orm:info
- doctrine:orm:generate-proxies
- doctrine:orm:mapping-describe
- doctrine:orm:run-dql
- doctrine:orm:validate-schema
- doctrine:orm:schema-tool:create
- doctrine:orm:schema-tool:drop
- doctrine:orm:schema-tool:update
Cache
Extension use psr6 cache implementation symfony cache. Default cache Symfony\Component\Cache\Adapter\NullAdapter.
Options add config on params.php
Add on di.php configuration psr-6 cache
Command:
- doctrine:orm:clear-cache:metadata
- doctrine:orm:clear-cache:query
- doctrine:orm:clear-cache:result
Migrations
Create migration:
Multi configuration
Migrate
Command:
- doctrine:migrations:current
- doctrine:migrations:diff
- doctrine:migrations:dump-schema
- doctrine:migrations:execute
- doctrine:migrations:generate
- doctrine:migrations:latest
- doctrine:migrations:list
- doctrine:migrations:migrate
- doctrine:migrations:rollup
- doctrine:migrations:status
- doctrine:migrations:sync-metadata-storage
- doctrine:migrations:up-to-date
- doctrine:migrations:version
Fixture
If need fixture, install package
All versions of yii-doctrine with dependencies
doctrine/migrations Version ^3.8.0
doctrine/orm Version ^3.2.1
psr/cache Version ^2.0|^3.0
psr/log Version ^2|^3
symfony/cache Version ^6.4.7
yiisoft/aliases Version ^3.0
yiisoft/config Version ^1.5
yiisoft/definitions Version ^3.3
yiisoft/injector Version ^1.2
yiisoft/yii-console Version ^2.2.0