Skip to content
Propel 2 integration with Nette Framework
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
src/NettePropel2
.gitignore
LICENSE
README.md
composer.json

README.md

NettePropel2

Propel 2 integration with Nette Framework

Configuration

Can be used as compiler extension:

    extensions:
        - NettePropel2\PropelExtension

or calling setup() in bootstrap.php:

  use NettePropel2;
  ...
  $container = $configurator->createContainer();
  NettePropel2\Setup::setup($container)

You can use both Neon or PHP to configure the database (If both are present, the php will be preferred).

In propel.local.php:

  $database = [
      'default' => [
          'adapter'     => 'sqlite|pgsql|mysql|oracle|mssql',
          'host'        => 'host',
          'dbname'      => 'dbname',
          'user'        => 'user',
          'password'    => 'password'
      ]
  ];

Or propel.local.neon:

  default:
    adapter: sqlite|pgsql|mysql|oracle|mssql
    host: host
    dbname: dbname
    user: user
    password: password

Schema and shell

You schema.xml must be on app/schema directory.

To run propel commands (model:build, migration:diff, etc) use the npropel shell instead of propel. The npropel script will set the --input-dir, --output-dir and --connection parameters to your project.

  ln -s vendor/bin/npropel propel
You can’t perform that action at this time.