Developed with love by KnpLabs Hire us for your project!
252

PropelBundle

by propelorm

PropelBundle for Symfony2.

PropelBundle

Build Status

This is the official implementation of Propel in Symfony2.

Branching model

As Propel2 will be released in the near future, we are migrating the branching model of this bundle in advance!

  • The 1.0 branch contains Propel 1.6 integration for Symfony 2.0 (*currently 2.0 branch*).
  • The 1.1 branch contains Propel 1.6 integration for Symfony 2.1 (*currently 2.1 branch*).
  • The 1.2 branch contains Propel 1.6 integration for Symfony 2.2 (*currently master branch*).
  • The 2.0 branch will contain Propel2 integration for Symfony 2.1. We are still considering to integrate Propel2 with Symfony 2.0. In case, we will do so, there will be a 2.1 and 2.0 branch integrating the respective Symfony version!

The 1.x branches are already available and you are encouraged to migrate your dependencies according to the listings!

  • If you depend on Symfony master branch, switch to the 1.2 branch.
  • If you depend on Symfony 2.1 branch, switch to the 1.1 branch.
  • If you depend on Symfony 2.0 branch, switch to the 1.0 branch.

Note: the master, and 2.0 branches won't be updated anymore, and will trigger a E_USER_DEPRECATED error to notice people.

Features

  • Generation of model classes based on an XML schema (not YAML) placed under BundleName/Resources/*schema.xml;
  • Insertion of SQL statements;
  • Runtime autoloading of Propel and generated classes;
  • Propel runtime initialization through the XML configuration;
  • Migrations Propel 1.6;
  • Reverse engineering from existing database;
  • Integration to the Symfony2 Profiler;
  • Load SQL, YAML and XML fixtures;
  • Create/Drop databases;
  • Integration with the Form component;
  • Integration with the Security component;
  • Propel ParamConverter can be used with Sensio Framework Extra Bundle.

For documentation, see:

Resources/doc/

Read the documentation

For license, see:

Resources/meta/LICENSE
The MIT License

Copyright (c) 2010-2012 William Durand <william.durand1@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
propel:
path: ~
phing_path: ~
logging: false
build_properties:

# Prototype
key: []
behaviors:

# Prototype
key: []
dbal:
default_connection: default
driver: mysql
user: root
password:
dsn:
classname: PropelPDO
options:

# Prototype
key: []
attributes:

# Prototype
key: []
settings:

# Prototype
key: []
connections:

# Prototype
name:
driver: mysql
user: root
password:
dsn:
classname: PropelPDO
slaves:

# Prototype
name:
driver: mysql
user: root
password:
dsn:
classname: PropelPDO
options:

# Prototype
key: []
model_paths:

# Defaults:
- src/
- vendor/
attributes:

# Prototype
key: []
settings:

# Prototype
key: []
  • Fixed master slave configuration
    By marcj, 18 days ago
  • Merge pull request #322 from oujesky/profiler_icon
    By marcj, 2 months ago
  • Fixed missing icon in Symfony profiler
    By oujesky, 2 months ago
  • Merge pull request #317 from cristianoc72/config-refactor
    By marcj, 2 months ago
  • Fix FormGenerateCommand
    By cristianoc72, 2 months ago
  • Added migration options for --force and --fake.
    By marcj, 3 months ago
  • Fixed some issues with symfony firewall and ModelType.
    By marcj, 3 months ago
  • Fixed getPackagePrefix in AbstractCommand.
    By marcj, 3 months ago
  • Removed `propel.runtime.logging` for Propel2' configuration file, since its configuration tree is a bit different.
    By marcj, 3 months ago
  • Added runtime.logging (default kernel.debug) so you can disable SQL logging in dev-environment explicitly.
    By marcj, 4 months ago
  • Set --platform for wrapper command only if it's not empty.
    By marcj, 4 months ago
  • Added migration:migrate command.
    By marcj, 4 months ago
  • Added usage of --force in propel:build for sql:insert.
    By marcj, 4 months ago
  • Fixed sql:build command, use `output-dir` as long as in propelv2 it is still `output-dir` and not like in sql:insert `sql-dir`.
    By marcj, 4 months ago
  • Fixed AbstractCommand to work with newest Propel2 version. Added option `index_property` back to ModelType.
    By marcj, 4 months ago
  • Added --overwrite optin to sql:build command to allow overwriting the sql.map file without the need to remove it manually.
    By marcj, 4 months ago
  • Added --force back to sql:insert command.
    By marcj, 4 months ago
  • Merge pull request #306 from K-Phoen/adapter_configuration
    By marcj, 4 months ago
  • Merge pull request #305 from oujesky/config_defaults
    By marcj, 4 months ago
  • Merge pull request #304 from oujesky/config_merge
    By marcj, 4 months ago
  • Merge pull request #302 from K-Phoen/forbid-incorrect-connection-names
    By marcj, 4 months ago
  • Fixed test suite
    By marcj, 4 months ago
  • Allow pdo_* values as valid adapters
    By K-Phoen, 4 months ago
  • Default values for options and attributes config arrays
    By oujesky, 4 months ago
  • Ability to correctly merge connection settings from multiple config files
    By oujesky, 4 months ago
  • Forbid dots in connection names
    By K-Phoen, 4 months ago
  • Merge pull request #252 from K-Phoen/2.0
    By havvg, 6 months ago
  • TableMap::TYPE_STUDLYPHPNAME constant was renamed to TableMap::TYPECAMELNAME
    By K-Phoen, 6 months ago
  • Remove branch alias
    By K-Phoen, 6 months ago
  • Test against symfony 2.5 in dev
    By K-Phoen, 6 months ago