https://github.com/formapro/yadm-bundle
An efficient way to treat MongoDB in Symfony. Extremely fast persistence and hydration.
https://github.com/formapro/yadm-bundle
Last synced: about 1 year ago
JSON representation
An efficient way to treat MongoDB in Symfony. Extremely fast persistence and hydration.
- Host: GitHub
- URL: https://github.com/formapro/yadm-bundle
- Owner: formapro
- License: mit
- Created: 2017-03-07T16:02:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-15T12:44:42.000Z (about 7 years ago)
- Last Synced: 2024-08-06T20:25:51.476Z (almost 2 years ago)
- Language: PHP
- Homepage:
- Size: 61.5 KB
- Stars: 7
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YadmBundle
## Install
Install library
```bash
$ composer require formapro/yadm-bundle "mikemccabe/json-patch-php:dev-master as 0.1.1"
```
Register the bundle
```php
get('yadm');
$productStorage = $registry->getStorage('Acme\Model\Category');
```
## Migrations
Generate new migration class
```bash
$ ./bin/console yadm:migrations:generate
Generated new migration class to "/app/YadmMigrations/Migration20190301122316.php"
```
Generated migration class example
```php