2017 © Pedro Peláez
 

library doctrine

Kohana module for integrating doctrine into kohana

image

kohana/doctrine

Kohana module for integrating doctrine into kohana

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Kohana Doctrine Library

Build Status, (*1)

The doctrine library for Kohana 3 provides a simple integration with doctrine 2.*. You can configure your doctrine integration by placing the config/doctrine.php file into your app/config folder and editing it., (*2)

Supported mapping solutions

Currently this module supports the following mapping methods., (*3)

  1. Annotation
  2. Xml
  3. Yaml

Supported caching solutions

Currently this module supports the following caching methods., (*4)

  1. Apc
  2. Array
  3. Memcache
  4. Redis
  5. Xcache

Using Doctrine

To use Kohana Doctrine, install it by composer require. You can do this by running composer require kohana/doctrine in your CLI. Then add Kohana Doctrine to your modules in bootstrap.php by adding the following line 'doctrine' => VENDORPATH.'kohana/doctrine'., (*5)

To configure doctrine copy the vendor/kohana/doctrine/config/doctrine.php or your app/config folder and editing it., (*6)

Quick example

The following is a quick example of how to use Kohana Doctrine by getting the entity manager and getting a repository from the entity manager., (*7)

$entityManager = \Kohana\Doctrine\EntityManager::instance();
$entityManager->getRepository('Full\Namespace\To\Entity')

The Versions

20/03 2016

dev-master

9999999-dev

Kohana module for integrating doctrine into kohana

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robert-Jan de Dreu

20/03 2016

0.1

0.1.0.0

Kohana module for integrating doctrine into kohana

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robert-Jan de Dreu