Skip to content

Commit

Permalink
Move Query to ActiveQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Jul 30, 2012
1 parent cbb7e9b commit 5ce810f
Show file tree
Hide file tree
Showing 39 changed files with 80 additions and 80 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
2 changes: 1 addition & 1 deletion src/Propel/Generator/Builder/Om/ObjectBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ protected function addClassBody(&$script)
'\Propel\Runtime\Collection\ObjectCollection',
'\Propel\Runtime\Exception\BadMethodCallException',
'\Propel\Runtime\Exception\PropelException',
'\Propel\Runtime\Query\Criteria',
'\Propel\Runtime\ActiveQuery\Criteria',
'\Propel\Runtime\ActiveRecord\ActiveRecordInterface',
'\Propel\Runtime\Parser\AbstractParser',
'\Propel\Runtime\Propel',
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
2 changes: 1 addition & 1 deletion src/Propel/Runtime/Adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Propel\Runtime\Connection\StatementInterface;
use Propel\Runtime\Map\ColumnMap;
use Propel\Runtime\Map\DatabaseMap;
use Propel\Runtime\Query\Criteria;
use Propel\Runtime\ActiveQuery\Criteria;

/**
* Interface for adapters.
Expand Down
2 changes: 1 addition & 1 deletion src/Propel/Runtime/Adapter/Pdo/MssqlAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Propel\Runtime\Connection\ConnectionInterface;
use Propel\Runtime\Exception\InvalidArgumentException;
use Propel\Runtime\Map\DatabaseMap;
use Propel\Runtime\Query\Criteria;
use Propel\Runtime\ActiveQuery\Criteria;

/**
* This is used to connect to a MSSQL database.
Expand Down
2 changes: 1 addition & 1 deletion src/Propel/Runtime/Adapter/Pdo/OracleAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Propel\Runtime\Exception\InvalidArgumentException;
use Propel\Runtime\Map\ColumnMap;
use Propel\Runtime\Util\BasePeer;
use Propel\Runtime\Query\Criteria;
use Propel\Runtime\ActiveQuery\Criteria;

/**
* Oracle adapter.
Expand Down
Loading

0 comments on commit 5ce810f

Please sign in to comment.