Error executing propel-gen diff #724

Closed
ron666 opened this Issue Jul 18, 2013 · 0 comments

Projects

None yet

1 participant

@ron666
ron666 commented Jul 18, 2013

Fatal error: Class 'Propel' not found in /path/to/propel/generator/lib/util/PropelMigrationManager.php

The reference for Propel.php file is missing in PropelMigrationManager.php.

By adding this after the last require_once will fix it:

require_once dirname(FILE) . '/PropelSQLParser.php'; // Last require_once in class
require_once dirname(dirname(dirname(dirname(FILE)))) . '/runtime/lib/Propel.php';

@Gamesh Gamesh added a commit to Gamesh/Propel that referenced this issue Nov 7, 2013
@Gamesh Gamesh Fixes Issue #724
Added missing require of Propel class for static call Propel::initConnection
899cf90
@staabm staabm added a commit to staabm/Propel that referenced this issue Feb 25, 2014
@Gamesh @staabm Gamesh + staabm Fixes Issue #724
Added missing require of Propel class for static call Propel::initConnection
d8ad80f
@ron666 ron666 closed this Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment