Fixed a few inconcistencies
This commit is contained in:
parent
4d980fb6ce
commit
b9ceee8abd
6 changed files with 26 additions and 13 deletions
|
|
@ -203,9 +203,9 @@ EOT
|
|||
'propel.builder.queryinheritancestub.class' => ModelBuildCommand::DEFAULT_QUERY_INHERITANCE_STUB_BUILDER,
|
||||
'propel.builder.tablemap.class' => ModelBuildCommand::DEFAULT_TABLEMAP_BUILDER,
|
||||
'propel.builder.pluralizer.class' => ModelBuildCommand::DEFAULT_PLURALIZER,
|
||||
'propel.disableIdentifierQuoting' => !false,
|
||||
'propel.disableIdentifierQuoting' => true,
|
||||
'propel.packageObjectModel' => true,
|
||||
'propel.namespace.autoPackage' => !false,
|
||||
'propel.namespace.autoPackage' => true,
|
||||
'propel.addGenericAccessors' => true,
|
||||
'propel.addGenericMutators' => true,
|
||||
'propel.addSaveMethod' => true,
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class MigrationStatusCommand extends WrappedCommand
|
|||
*/
|
||||
protected function createSubCommandInstance()
|
||||
{
|
||||
return new \Propel\Generator\Command\MigrationStatusCommand();
|
||||
return new BaseMigrationCommand();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class MigrationUpCommand extends WrappedCommand
|
|||
*/
|
||||
protected function createSubCommandInstance()
|
||||
{
|
||||
return new \Propel\Generator\Command\MigrationUpCommand();
|
||||
return new BaseMigrationCommand();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ use Symfony\Component\Console\Input\InputArgument;
|
|||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
|
||||
use Propel\Generator\Command\ModelBuildCommand as BaseModelBuildCommand;
|
||||
|
||||
/**
|
||||
* @author Kévin Gomez <contact@kevingomez.fr>
|
||||
*/
|
||||
|
|
@ -40,7 +42,7 @@ class ModelBuildCommand extends WrappedCommand
|
|||
*/
|
||||
protected function createSubCommandInstance()
|
||||
{
|
||||
return new \Propel\Generator\Command\ModelBuildCommand();
|
||||
return new BaseModelBuildCommand();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -48,7 +50,7 @@ class ModelBuildCommand extends WrappedCommand
|
|||
*/
|
||||
protected function getSubCommandArguments(InputInterface $input)
|
||||
{
|
||||
$outputDir = realpath($this->getApplication()->getKernel()->getRootDir().'/../');
|
||||
$outputDir = $this->getApplication()->getKernel()->getRootDir().'/../';
|
||||
|
||||
return array(
|
||||
'--output-dir' => $outputDir,
|
||||
|
|
|
|||
|
|
@ -1,10 +1,21 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the PropelBundle package.
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @license MIT License
|
||||
*/
|
||||
|
||||
namespace Propel\PropelBundle\Form;
|
||||
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||
|
||||
/**
|
||||
* @author William DURAND <william.durand1@gmail.com>
|
||||
*/
|
||||
abstract class BaseAbstractType extends AbstractType
|
||||
{
|
||||
protected $options = array(
|
||||
|
|
|
|||
|
|
@ -37,13 +37,13 @@ class Column
|
|||
}
|
||||
|
||||
switch ($this->type) {
|
||||
case PropelColumnTypes::CHAR:
|
||||
case PropelColumnTypes::VARCHAR:
|
||||
case PropelColumnTypes::LONGVARCHAR:
|
||||
case PropelColumnTypes::BLOB:
|
||||
case PropelColumnTypes::CLOB:
|
||||
case PropelColumnTypes::CLOB_EMU:
|
||||
return true;
|
||||
case PropelColumnTypes::CHAR:
|
||||
case PropelColumnTypes::VARCHAR:
|
||||
case PropelColumnTypes::LONGVARCHAR:
|
||||
case PropelColumnTypes::BLOB:
|
||||
case PropelColumnTypes::CLOB:
|
||||
case PropelColumnTypes::CLOB_EMU:
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue