Skip to content

Commit

Permalink
Merge pull request #288 from willdurand/naming
Browse files Browse the repository at this point in the history
Move Om to ActiveRecord
  • Loading branch information
willdurand committed Jul 30, 2012
2 parents cb24f84 + 2596d09 commit 901cc87
Show file tree
Hide file tree
Showing 128 changed files with 239 additions and 240 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function getColumnGetter()
public function objectMethods($builder)
{
$this->builder = $builder;
$this->builder->declareClasses('Propel\Runtime\Query\PropelQuery');
$this->builder->declareClasses('Propel\Runtime\ActiveQuery\PropelQuery');
$script = '';
$this->addHasChildObject($script);
$this->addGetChildObject($script);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function objectMethods($builder)
$this->addDeleteDescendants($script);

$this->builder->declareClass(
'\Propel\Runtime\Om\NestedSetRecursiveIterator'
'\Propel\Runtime\ActiveRecord\NestedSetRecursiveIterator'
);
$this->addGetIterator($script);

Expand Down
4 changes: 2 additions & 2 deletions src/Propel/Generator/Builder/Om/ObjectBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ protected function addClassBody(&$script)
'\Propel\Runtime\Collection\ObjectCollection',
'\Propel\Runtime\Exception\BadMethodCallException',
'\Propel\Runtime\Exception\PropelException',
'\Propel\Runtime\Query\Criteria',
'\Propel\Runtime\Om\ActiveRecordInterface',
'\Propel\Runtime\ActiveQuery\Criteria',
'\Propel\Runtime\ActiveRecord\ActiveRecordInterface',
'\Propel\Runtime\Parser\AbstractParser',
'\Propel\Runtime\Propel',
'\Propel\Runtime\Util\BasePeer'
Expand Down
2 changes: 1 addition & 1 deletion src/Propel/Generator/Builder/Om/PeerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ protected function addClassBody(&$script)
'\Propel\Runtime\Connection\StatementInterface',
'\Propel\Runtime\Exception\PropelException',
'\Propel\Runtime\Util\BasePeer',
'\Propel\Runtime\Query\Criteria',
'\Propel\Runtime\ActiveQuery\Criteria',
'\PDO'
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Propel/Generator/Builder/Om/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ protected function addClassBody(&$script)
// namespaces
$this->declareClasses(
'\Propel\Runtime\Propel',
'\Propel\Runtime\Query\ModelCriteria',
'\Propel\Runtime\Query\Criteria',
'\Propel\Runtime\Query\ModelJoin',
'\Propel\Runtime\ActiveQuery\ModelCriteria',
'\Propel\Runtime\ActiveQuery\Criteria',
'\Propel\Runtime\ActiveQuery\ModelJoin',
'\Exception'
);
$this->declareClassFromBuilder($this->getStubQueryBuilder(), 'Child');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ protected function addClassBody(&$script)
$this->declareClassFromBuilder($this->getStubPeerBuilder());
$this->declareClasses(
'\Propel\Runtime\Connection\ConnectionInterface',
'\Propel\Runtime\Query\Criteria'
'\Propel\Runtime\ActiveQuery\Criteria'
);
$this->addFactory($script);
$this->addPreSelect($script);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
* @license MIT License
*/

namespace Propel\Runtime\Query;
namespace Propel\Runtime\ActiveQuery;

use Propel\Runtime\Propel;
use Propel\Runtime\Exception\LogicException;
use Propel\Runtime\Util\BasePeer;
use Propel\Runtime\Util\PropelConditionalProxy;
use Propel\Runtime\Query\Criterion\AbstractCriterion;
use Propel\Runtime\Query\Criterion\BasicCriterion;
use Propel\Runtime\Query\Criterion\InCriterion;
use Propel\Runtime\Query\Criterion\CustomCriterion;
use Propel\Runtime\Query\Criterion\LikeCriterion;
use Propel\Runtime\Query\Criterion\RawCriterion;
use Propel\Runtime\ActiveQuery\Criterion\AbstractCriterion;
use Propel\Runtime\ActiveQuery\Criterion\BasicCriterion;
use Propel\Runtime\ActiveQuery\Criterion\InCriterion;
use Propel\Runtime\ActiveQuery\Criterion\CustomCriterion;
use Propel\Runtime\ActiveQuery\Criterion\LikeCriterion;
use Propel\Runtime\ActiveQuery\Criterion\RawCriterion;

/**
* This is a utility class for holding criteria information for a query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion;
namespace Propel\Runtime\ActiveQuery\Criterion;

use \Exception;

use Propel\Runtime\Propel;
use Propel\Runtime\Query\Criteria;
use Propel\Runtime\ActiveQuery\Criteria;
use Propel\Runtime\Exception\PropelException;
use Propel\Runtime\Adapter\AdapterInterface;
use Propel\Runtime\Map\ColumnMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion;
namespace Propel\Runtime\ActiveQuery\Criterion;

use Propel\Runtime\Query\Criteria;
use Propel\Runtime\ActiveQuery\Criteria;

/**
* This is an "inner" class that describes an object in the criteria.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion;
namespace Propel\Runtime\ActiveQuery\Criterion;

use Propel\Runtime\Query\Criterion\Exception\InvalidValueException;
use Propel\Runtime\Query\Criteria;
use Propel\Runtime\ActiveQuery\Criterion\Exception\InvalidValueException;
use Propel\Runtime\ActiveQuery\Criteria;

/**
* Specialized Criterion used for traditional expressions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion;
namespace Propel\Runtime\ActiveQuery\Criterion;

use Propel\Runtime\Query\Criterion\Exception\InvalidClauseException;
use Propel\Runtime\ActiveQuery\Criterion\Exception\InvalidClauseException;

/**
* Specialized ModelCriterion used for traditional expressions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion;
namespace Propel\Runtime\ActiveQuery\Criterion;

use Propel\Runtime\Query\Criteria;
use Propel\Runtime\ActiveQuery\Criteria;

/**
* Specialized Criterion used for custom expressions with no binding, e.g. 'NOW() = 1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion\Exception;
namespace Propel\Runtime\ActiveQuery\Criterion\Exception;

use Propel\Runtime\Exception\InvalidArgumentException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion\Exception;
namespace Propel\Runtime\ActiveQuery\Criterion\Exception;

use Propel\Runtime\Exception\InvalidArgumentException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion;
namespace Propel\Runtime\ActiveQuery\Criterion;

use Propel\Runtime\Query\Criteria;
use Propel\Runtime\ActiveQuery\Criteria;

/**
* Specialized Criterion used for IN expressions, e.g. table.column IN (?, ?) or table.column NOT IN (?, ?)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion;
namespace Propel\Runtime\ActiveQuery\Criterion;

/**
* Specialized ModelCriterion used for IN or NOT IN model clauses,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion;
namespace Propel\Runtime\ActiveQuery\Criterion;

use Propel\Runtime\Query\Criteria;
use Propel\Runtime\ActiveQuery\Criteria;
use Propel\Runtime\Adapter\Pdo\PgsqlAdapter;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion;
namespace Propel\Runtime\ActiveQuery\Criterion;

use Propel\Runtime\Query\Criterion\Exception\InvalidClauseException;
use Propel\Runtime\ActiveQuery\Criterion\Exception\InvalidClauseException;
use Propel\Runtime\Adapter\Pdo\PgsqlAdapter;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion;
namespace Propel\Runtime\ActiveQuery\Criterion;

use Propel\Runtime\Query\Criterion\Exception\InvalidClauseException;
use Propel\Runtime\Query\Criteria;
use Propel\Runtime\ActiveQuery\Criterion\Exception\InvalidClauseException;
use Propel\Runtime\ActiveQuery\Criteria;

use \PDO;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion;
namespace Propel\Runtime\ActiveQuery\Criterion;

use Propel\Runtime\Query\Criterion\Exception\InvalidClauseException;
use Propel\Runtime\Query\Criteria;
use Propel\Runtime\ActiveQuery\Criterion\Exception\InvalidClauseException;
use Propel\Runtime\ActiveQuery\Criteria;

use \PDO;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Criterion;
namespace Propel\Runtime\ActiveQuery\Criterion;

use Propel\Runtime\Query\Criterion\Exception\InvalidValueException;
use Propel\Runtime\ActiveQuery\Criterion\Exception\InvalidValueException;

/**
* Specialized ModelCriterion used for ternary model clause, e.G 'book.ID BETWEEN ? AND ?'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Exception;
namespace Propel\Runtime\ActiveQuery\Exception;

use Propel\Runtime\Exception\RuntimeException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Exception;
namespace Propel\Runtime\ActiveQuery\Exception;

use Propel\Runtime\Exception\RuntimeException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT License
*/

namespace Propel\Runtime\Query\Exception;
namespace Propel\Runtime\ActiveQuery\Exception;

use Propel\Runtime\Exception\RuntimeException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* @license MIT License
*/

namespace Propel\Runtime\Query;
namespace Propel\Runtime\ActiveQuery;

use Propel\Runtime\Query\Criterion\AbstractCriterion;
use Propel\Runtime\ActiveQuery\Criterion\AbstractCriterion;
use Propel\Runtime\Adapter\AdapterInterface;
use Propel\Runtime\Exception\LogicException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT License
*/

namespace Propel\Runtime\Query;
namespace Propel\Runtime\ActiveQuery;

use Propel\Runtime\Propel;
use Propel\Runtime\Collection\ObjectCollection;
Expand All @@ -25,18 +25,18 @@
use Propel\Runtime\Map\TableMap;
use Propel\Runtime\Util\BasePeer;
use Propel\Runtime\Util\PropelModelPager;
use Propel\Runtime\Query\Criteria;
use Propel\Runtime\Query\Criterion\AbstractCriterion;
use Propel\Runtime\Query\Criterion\InModelCriterion;
use Propel\Runtime\Query\Criterion\BasicModelCriterion;
use Propel\Runtime\Query\Criterion\CustomCriterion;
use Propel\Runtime\Query\Criterion\LikeModelCriterion;
use Propel\Runtime\Query\Criterion\RawCriterion;
use Propel\Runtime\Query\Criterion\RawModelCriterion;
use Propel\Runtime\Query\Criterion\SeveralModelCriterion;
use Propel\Runtime\Query\Exception\UnknownColumnException;
use Propel\Runtime\Query\Exception\UnknownModelException;
use Propel\Runtime\Query\Exception\UnknownRelationException;
use Propel\Runtime\ActiveQuery\Criteria;
use Propel\Runtime\ActiveQuery\Criterion\AbstractCriterion;
use Propel\Runtime\ActiveQuery\Criterion\InModelCriterion;
use Propel\Runtime\ActiveQuery\Criterion\BasicModelCriterion;
use Propel\Runtime\ActiveQuery\Criterion\CustomCriterion;
use Propel\Runtime\ActiveQuery\Criterion\LikeModelCriterion;
use Propel\Runtime\ActiveQuery\Criterion\RawCriterion;
use Propel\Runtime\ActiveQuery\Criterion\RawModelCriterion;
use Propel\Runtime\ActiveQuery\Criterion\SeveralModelCriterion;
use Propel\Runtime\ActiveQuery\Exception\UnknownColumnException;
use Propel\Runtime\ActiveQuery\Exception\UnknownModelException;
use Propel\Runtime\ActiveQuery\Exception\UnknownRelationException;

/**
* This class extends the Criteria by adding runtime introspection abilities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT License
*/

namespace Propel\Runtime\Query;
namespace Propel\Runtime\ActiveQuery;

use Propel\Runtime\Map\RelationMap;
use Propel\Runtime\Map\TableMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT License
*/

namespace Propel\Runtime\Query;
namespace Propel\Runtime\ActiveQuery;

use Propel\Runtime\Map\RelationMap;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT License
*/

namespace Propel\Runtime\Query;
namespace Propel\Runtime\ActiveQuery;

use Propel\Runtime\Exception\ClassNotFoundException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
* @license MIT License
*/

namespace Propel\Runtime\Om;
namespace Propel\Runtime\ActiveRecord;

/**
* This ActiveRecord interface help to find Propel Object
* This ActiveRecord interface helps to find Propel Object
*
* @author jaugustin
*/
interface ActiveRecordInterface
{

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT License
*/

namespace Propel\Runtime\Om;
namespace Propel\Runtime\ActiveRecord;

/**
* Pre-order node iterator for Node objects.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT License
*/

namespace Propel\Runtime\Om;
namespace Propel\Runtime\ActiveRecord;

use Propel\Runtime\Connection\ConnectionInterface;

Expand Down
Loading

0 comments on commit 901cc87

Please sign in to comment.