propelorm/Propel — pull request #276 by havvg (2012-02-01 16:20:01+00:00)
Title: make class targets selectable

This enables usage of the QuickBuilder in test environments where parts of those classes are given and others are not (like having the Book committed but not adding the BaseBook into VCS).

Real-world usage example:

```php

*/
class TestCase extends BaseTestCase
{
protected $con = null;

public function setUp()
{
parent::setUp();

$this->loadPropelQuickBuilder();

$schema = file_get_contents(__DIR__.'/../../../Resources/config/acl_schema.xml');

$builder = new PropelQuickBuilder();
$builder->setSchema($schema);
if (!class_exists('Propel\PropelBundle\Model\Acl\map\AclClassTableMap')) {
$builder->setClassTargets(array('tablemap', 'peer', 'object', 'query'));
} else {
$builder->setClassTargets(array());
}

$this->con = $builder->build();

return;
}
}
```