2017 © Pedro Peláez
 

library zpropel

Use Propel ORM with Zend Framework 2

image

4zend/zpropel

Use Propel ORM with Zend Framework 2

  • Tuesday, April 15, 2014
  • by MarshallHouse
  • Repository
  • 4 Watchers
  • 2 Stars
  • 127 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

zpropel

Propel ORM module for Zend Framework 2, (*1)

Install Via Composer

"require": { "4zend/zpropel": "dev-master" }, (*2)

Get Started

View the demo directory for an example project and then create your project files at: data/zpropel/proxy, (*3)

  • Add "Zpropel" to the modules key in config/application.config.php
  • Write your project files (schema.xml, runtime-conf.xml, build.properties) in data/zpropel/proxy
  • CD to your ZF2 application's public/ directory and run: php index.php propel-gen

Usage

Once your project is "built" you can access the classes from anywhere using the "Zpropel" namespace., (*4)

i.e. $author = new \Zpropel\Author();, (*5)

Events

Zpropel comes with a Propel behavior designed to trigger Propel "hooks" as ZF2 EventManager events., (*6)

i.e. Observe a shared event, (*7)

$eventManager->getSharedManager()->attach('zpropel', 'author_preSave', function($e){
    $author = $e->getTarget();
    // do something
}, 100);`

The Versions

15/04 2014

dev-master

9999999-dev https://github.com/MarshallHouse/zpropel

Use Propel ORM with Zend Framework 2

  Sources   Download

MIT

The Requires

 

zf2 zend framework propel orm