2017 © Pedro Peláez
 

library yiidoctrine2

This is an extension for the Yii Framework that integrates Doctrine 2 ORM & ODM projects

image

bluecloudy/yiidoctrine2

This is an extension for the Yii Framework that integrates Doctrine 2 ORM & ODM projects

  • Monday, May 5, 2014
  • by bluecloudy
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii Doctrine 2

This is an extension for the Yii Framework that integrates Doctrine 2 ORM & ODM projects, (*1)

Requirements

  • PHP 5.3.2 (or later)*
  • YiiFramework 1.1.14 (or later)

Installation

Installing Manually

  1. Download and place the 'yiidoctrine2' directory in your Yii extension directory., (*2)

  2. In config/main.php you will need to add the YiiDoctrine alias. This allows for flexability in where you place the extension., (*3)

    'aliases' => array(
        .. .
        'YiiDoctrine' => realpath(__DIR__ . '/../extensions/bluecloudy/yiidoctrine2'),
        .. .
    ),
  1. Include ext.bluecloudy.YiiDoctrine.components.YDComponent.
    'components' => array(
        'doctrine'=>array(
            'class' => 'YiiDoctrine.components.YDComponent',
            'basePath'      => dirname(__FILE__),
            'proxyPath'     => dirname(__FILE__).'/proxies',
            'entityPath'    => array(
                dirname(__FILE__).'/models'
            ),
            'cachePath'  => dirname(dirname(__FILE__)) . '/cache',
            'db' => array(
                'driver' => 'pdo_sqlite',
                'path' => dirname(__FILE__).'/data/blog.db'
            )
        )
    )

Installing With Composer

{
    "require": {
        "bluecloudy/yiidoctrine2": "dev-master"
    }
}
  1. In config/main.php you will need to add the YiiDoctrine alias. This allows for flexability in where you place the extension.
    'aliases' => array(
        .. .
        //Path to your Composer vendor dir plus vendor/bluecloudy path
        'YiiDoctrine' =>realpath(__DIR__ . '/../../vendor/bluecloudy/yiidoctrine2/bluecloudy/yiidoctrine2'),
        .. .
    ),

The Versions

05/05 2014

dev-master

9999999-dev https://github.com/bluecloudy/yiidoctrine2

This is an extension for the Yii Framework that integrates Doctrine 2 ORM & ODM projects

  Sources   Download

MIT

The Requires

 

by Giang Nguyen

orm extension doctrine yii