2017 © Pedro PelĂĄez
 

library fuelphp-doctrine

FuelPHP Doctrine 2 integration

image

indigophp/fuelphp-doctrine

FuelPHP Doctrine 2 integration

  • Monday, March 16, 2015
  • by mark.sagikazar
  • Repository
  • 2 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

FuelPHP Doctrine

Latest Version Software License Total Downloads, (*1)

This package is a wrapper around doctrine/doctrine2 package., (*2)

Install

Via Composer, (*3)

``` bash $ composer require indigophp/fuelphp-doctrine, (*4)



## Usage Simply install this package to be able to use Doctrine inside FuelPHP. ## Configuration To make it work, you need the following `doctrine` configuration. ``` php 'dbal' => 'default', 'proxy_dir' => '/tmp', 'proxy_namespace' => 'PrOxYnAmEsPaCe', 'auto_generate_proxy_classes' => true, 'mappings' => array( 'mapping' => array( 'type' => 'xml', 'dir' => '/mypath', 'prefix' => 'MyPrefix', ), ), 'cache_driver' => 'array',

You can also use the Setup class to auto configure the Configuration object., (*5)

``` php 'dbal' => 'default', 'auto_config' => true, 'dev_mode' => \Fuel::$env === \Fuel::DEVELOPMENT, 'proxy_dir' => '/tmp', 'cache_driver' => 'array',, (*6)



### Multiple managers By default you have one manager (`default`). If you would like use multiple managers, you have to add a key `managers` to your doctrine config, and set your configurations there. You can also set global configurations in the config root. Make sure to set `auto_mapping` to `false`. ``` php 'auto_mapping' => false, 'dbal' => 'default', 'managers' => array( 'default' => array(), 'aditional' => array() ),

Note: This package uses indigophp/fuelphp-dbal for connections. Check the package documentation., (*7)

Contributing

Please see CONTRIBUTING for details., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

16/03 2015

dev-develop

dev-develop https://indigophp.com

FuelPHP Doctrine 2 integration

  Sources   Download

MIT

The Requires

 

by MĂĄrk SĂĄgi-KazĂĄr

doctrine2 fuelphp