Skip to content

bluecloudy/yiidoctrine2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii Doctrine 2

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

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. In config/main.php you will need to add the YiiDoctrine alias. This allows for flexability in where you place the extension.

	'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'),
        .. .
	),

About

Yii Doctrine 2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published