Skip to content

Instantly share code, notes, and snippets.

@pjendrusik
Forked from cristianoc72/propel.yaml
Created January 30, 2016 14:38

Revisions

  1. @cristianoc72 cristianoc72 revised this gist Jul 22, 2014. 1 changed file with 3 additions and 11 deletions.
    14 changes: 3 additions & 11 deletions propel.yaml
    Original file line number Diff line number Diff line change
    @@ -57,6 +57,8 @@ propel:
    charset: utf8
    #Array of queries to run when the database connection is initialized
    queries:
    - "SELECT * FROM myTable"
    - "Update logs SET ....."
    #example of master-slave connection
    master-slave:
    adapter: mysql
    @@ -256,14 +258,4 @@ propel:

    # Builder classes
    builders:
    object: \Propel\Generator\Builder\Om\ObjectBuilder
    objectstub: \Propel\Generator\Builder\Om\ExtensionObjectBuilder
    objectmultiextend: \Propel\Generator\Builder\Om\MultiExtendObjectBuilder
    tablemap: \Propel\Generator\Builder\Om\TableMapBuilder
    query: \Propel\Generator\Builder\Om\QueryBuilder
    querystub: \Propel\Generator\Builder\Om\ExtensionQueryBuilder
    queryinheritance: \Propel\Generator\Builder\Om\QueryInheritanceBuilder
    queryinheritancestub: \Propel\Generator\Builder\Om\ExtensionQueryInheritanceBuilder
    interface: \Propel\Generator\Builder\Om\InterfaceBuilder
    # SQL builders
    datasql:
    object: \Propel\Generator\Builder\
  2. @cristianoc72 cristianoc72 revised this gist Jul 22, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion propel.yaml
    Original file line number Diff line number Diff line change
    @@ -56,7 +56,7 @@ propel:
    settings:
    charset: utf8
    #Array of queries to run when the database connection is initialized
    query:
    queries:
    #example of master-slave connection
    master-slave:
    adapter: mysql
  3. @cristianoc72 cristianoc72 revised this gist Apr 25, 2014. 1 changed file with 13 additions and 6 deletions.
    19 changes: 13 additions & 6 deletions propel.yaml
    Original file line number Diff line number Diff line change
    @@ -122,12 +122,19 @@ propel:
    profiler:
    classname: \Propel\Runtime\Util\Profiler
    slowTreshold: 0.1
    time:
    precision: 3
    pad: 8
    memory:
    precision: 3
    pad: 8
    details:
    time:
    precision: 3
    pad: 8
    memory:
    precision: 3
    pad: 8
    memDelta:
    precision: 3
    pad: 8
    memPeak:
    precision: 3
    pad: 8
    innerGlue: ":"
    outerGlue: "|"

  4. @cristianoc72 cristianoc72 revised this gist Mar 28, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions propel.yaml
    Original file line number Diff line number Diff line change
    @@ -204,8 +204,8 @@ propel:
    # To have these methods return DateTime objects instead, you should set these
    # to empty values
    defaultTimeStampFormat: Y-m-d H:i:s
    defaultTimeFormat: %X
    defaultDateFormat: %x
    defaultTimeFormat:
    defaultDateFormat:

    objectModel:
    # Whether to add generic getter/setter methods.
  5. @cristianoc72 cristianoc72 revised this gist Mar 17, 2014. 1 changed file with 258 additions and 208 deletions.
    466 changes: 258 additions & 208 deletions propel.yaml
    Original file line number Diff line number Diff line change
    @@ -1,212 +1,262 @@
    ## Sample Propel configuration file ##

    ## NOTE: work in progress! Some properties could be removed

    propel:
    ## General settings ##
    general:
    # The name of your project.
    # This affects names of generated files, etc.
    project:
    version: 2.0.0-dev

    ### Directories and Filenames ###
    paths:
    # Directory where the project files (`schema.xml`, etc.) are located.
    # Default value is current path #
    projectDir: current_path

    # The directory where Propel expects to find your `schema.xml` file.
    schemaDir: current-path

    # The directory where Propel should output classes, sql, config, etc.
    # Default value is current path #
    outputDir: current-path

    # The directory where Propel should output generated object model classes.
    phpDir: current-path/generated-classes

    # The directory where Propel should output the compiled runtime configuration.
    phpConfDir: current-path/generated-conf

    # The directory where Propel should output the generated DDL (or data insert statements, etc.)
    sqlDir: current-path/generated-sql

    # Directory in which your composer.json resides
    composerDir:

    ## All Database settings ##
    #
    # This section replaces the old runtime-conf.xml file and it's also used by config:convert command
    database:
    # All database sources
    connections:
    default:
    adapter:
    # Connection class. While developing you could use Propel\Runtime\Connection\DebugPDO
    classname: Propel\Runtime\Connection\ConnectionWrapper
    dsn:
    user:
    password:
    # Driver options. See http://www.php.net/manual/en/pdo.construct.php
    # and http://www.php.net/manual/en/pdo.getattribute.php
    attributes:

    ## Specific adapter settings
    adapters:
    ## Mysql ##
    mysql:
    tableType: InnoDB
    tableEngineKeyword: ENGINE

    ## Sqlite ##
    sqlite:
    foreigKey:
    tableAlteringWorkaround:

    ## Oracle ##
    oracle:
    autoincrementSequencePattern = ${table}_SEQ

    ## Migration settings ##
    migrations:
    samePhpName: false
    addVendorInfo: false
    tableName: propel_migration
    general:
    # The name of your project.
    # This affects names of generated files, etc.
    project:
    version: 2.0.0-dev

    ### Directories and Filenames ###
    paths:
    # Directory where the project files (`schema.xml`, etc.) are located.
    # Default value is current path #
    projectDir: current_path

    # The directory where Propel expects to find your `schema.xml` file.
    schemaDir: current-path

    # The directory where Propel should output classes, sql, config, etc.
    # Default value is current path #
    outputDir: current-path

    # The directory where Propel should output generated object model classes.
    phpDir: current-path/generated-classes

    # The directory where Propel should output the compiled runtime configuration.
    phpConfDir: current-path/generated-conf

    # The directory where Propel should output the generated DDL (or data insert statements, etc.)
    sqlDir: current-path/generated-sql

    # Directory in which your composer.json resides
    composerDir:

    ## All Database settings ##
    #
    # This section replaces the old runtime-conf.xml file and it's also used by config:convert command
    database:
    # All database sources
    connections:
    default:
    adapter:
    # Connection class. While developing you could use Propel\Runtime\Connection\DebugPDO
    classname: Propel\Runtime\Connection\ConnectionWrapper
    dsn:
    user:
    password:
    # Driver options. See http://www.php.net/manual/en/pdo.construct.php
    # options must be passed to the contructor of the connection object
    options:
    # See http://www.php.net/manual/en/pdo.getattribute.php
    # Attributes are set via `setAttribute()` method, after the connection object is created
    attributes:
    #Propel specific settings
    settings:
    charset: utf8
    #Array of queries to run when the database connection is initialized
    query:
    #example of master-slave connection
    master-slave:
    adapter: mysql
    classname: Propel\Runtime\Connection\DebugPdo
    dsn: mysql:host=localhost;dbname=mydb
    user: prettyuser
    password: prettypwd
    options:
    attributes:
    slaves:
    - dsn: mysql:host=slave-host-1;dbname=bookstore
    - dsn: mysql:host=slave-host-2;dbname=bookstore
    - dsn: mysql:host=slave-host-3;dbname=bookstore

    ## Specific adapter settings
    adapters:
    ## Mysql ##
    mysql:
    tableType: InnoDB
    tableEngineKeyword: ENGINE

    ## Sqlite ##
    sqlite:
    foreigKey:
    tableAlteringWorkaround:

    ## Oracle ##
    oracle:
    autoincrementSequencePattern: ${table}_SEQ

    ## Migration settings ##
    migrations:
    samePhpName: false
    addVendorInfo: false
    tableName: propel_migration
    parserClass:

    ## Reverse settings
    reverse:
    # The connection to use to reverse the database
    connection: default
    # Reverse parser class can be different from migration one
    parserClass:

    ## Runtime settings ##
    runtime:
    defaultConnection: default
    # Datasources as defined in database.connections
    connections:
    - default

    ## Generator settings ##
    generator:
    defaultConnection: default
    # Datasources as defined in database.connections
    connections:
    - default

    # A prefix to prepend to all table names
    tablePrefix:

    # Platform class name
    platformClass:

    # The package to use for the generated classes.
    # This affects the value of the @package phpdoc tag, and it also affects
    # the directory that the classes are placed in. By default this will be
    # the same as the project. Note that the target package (and thus the target
    # directory for generated classes) can be overridden in each `<database>` and
    # `<table>` element in the XML schema.
    #
    # DEPRECATED ? (this was used back in th 80's with php5.2)
    targetPackage:

    # Whether to join schemas using the same database name into a single schema.
    # This allows splitting schemas in packages, and referencing tables in another
    # schema (but in the same database) in a foreign key. Beware that database
    # behaviors will also be joined when this parameter is set to true.
    packageObjectModel: true

    # If you use namespaces in your schemas, this setting tells Propel to use the
    # namespace attribute for the package. Consequently, the namespace attribute
    # will also stipulate the subdirectory in which model classes get generated.
    namespaceAutoPackage: true

    schema:
    # The schema base name
    basename: schema
    # If your XML schema specifies SQL schemas for each table, you can copy the
    # value of the `schema` attribute to other attributes.
    # To copy the schema attribute to the package attribute, set this to true
    autoPackage: false
    # To copy the schema attribute to the namespace attribute, set this to true
    autoNamespace: false
    # To use the schema attribute as a prefix to all model phpNames, set this to true
    autoPrefix: false

    # Whether to transform the XML schema using the XSL file.
    # This was used in previous Propel versions to clean up the schema, but tended
    # to hide problems in the schema. It is disabled by default since Propel 1.5.
    # The default XSL file is located under `resources/xsl/database.xsl`
    # and you can use a custom XSL file by changing the `propel.schema.xsl.file`
    # property.
    transform: false

    ## Date/Time settings ##
    dateTime:

    # Enable full use of the DateTime class.
    # Setting this to true means that getter methods for date/time/timestamp
    # columns will return a DateTime object when the default format is empty.
    useDateTimeClass: true

    # Specify a custom DateTime subclass that you wish to have Propel use
    # for temporal values.
    dateTimeClass: DateTime

    # These are the default formats that will be used when fetching values from
    # temporal columns in Propel. You can always specify these when calling the
    # methods directly, but for methods like getByName() it is nice to change
    # the defaults.
    # To have these methods return DateTime objects instead, you should set these
    # to empty values
    defaultTimeStampFormat: Y-m-d H:i:s
    defaultTimeFormat: %X
    defaultDateFormat: %x

    objectModel:
    # Whether to add generic getter/setter methods.
    # Generic accessors are `getByName()`, `getByPosition(), ` and `toArray()`.
    addGenericAccessors: true
    # Generic mutators are `setByName()`, `setByPosition()`, and `fromArray()`.
    addGenericMutators: true
    emulateForeignKeyConstraints: false
    addClassLevelComment: true
    defaultKeyType: phpName
    addSaveMethod: true
    namespaceMap: Map

    # Whether to add a timestamp to the phpdoc header of generated OM classes.
    # If you use a versioning system, don't set this to true, or the classes
    # will be committed too often with just a date change.
    addTimeStamp: false

    # Whether to support pre- and post- hooks on `save()` and `delete()` methods.
    # Set to false if you never use these hooks for a small speed boost.
    addHooks: true

    # Some sort of "namespacing": All Propel classes with get the Prefix
    # "My_ORM_Prefix_" just like "My_ORM_Prefix_BookTableMap".
    # DEPRECATED ?
    classPrefix:

    # Identifier quoting may result in undesired behavior (especially in Postgres),
    # it can be disabled in DDL by setting this property to true in your build.properties file.
    disableIdentifierQuoting: false

    # Whether the generated `doSelectJoin*()` methods use LEFT JOIN or INNER JOIN
    # (see ticket:491 and ticket:588 to understand more about why this might be
    # important).
    useLeftJoinsInDoJoinMethods: true

    # Pluralizer class (used to generate plural forms)
    pluralizerClass: \Propel\Common\Pluralizer\StandardEnglishPluralizer
    # Use StandardEnglishPluralizer instead of DefaultEnglishPluralizer for better pluralization
    # (Handles uncountable and irregular nouns)

    # Builder classes
    builders:
    object: \Propel\Generator\Builder\Om\ObjectBuilder
    objectstub: \Propel\Generator\Builder\Om\ExtensionObjectBuilder
    objectmultiextend: \Propel\Generator\Builder\Om\MultiExtendObjectBuilder
    tablemap: \Propel\Generator\Builder\Om\TableMapBuilder
    query: \Propel\Generator\Builder\Om\QueryBuilder
    querystub: \Propel\Generator\Builder\Om\ExtensionQueryBuilder
    queryinheritance: \Propel\Generator\Builder\Om\QueryInheritanceBuilder
    queryinheritancestub: \Propel\Generator\Builder\Om\ExtensionQueryInheritanceBuilder
    interface: \Propel\Generator\Builder\Om\InterfaceBuilder
    # SQL builders
    datasql:

    ## Runtime settings ##
    runtime:
    defaultConnection: default
    # Datasources as defined in database.connections
    connections:
    - default

    ## Log and loggers definitions ##
    # For `type` and `level` options see Monolog documentation https://github.com/Seldaek/monolog
    log:
    defaultLogger:
    type:
    path:
    level:

    ## Profiler configuration ##
    # To enable the profiler for a connection, set the `classname` option to \Propel\Runtime\Connection\ProfilerConnectionWrapper
    # see: http://propelorm.org/documentation/07-logging.html
    profiler:
    classname: \Propel\Runtime\Util\Profiler
    slowTreshold: 0.1
    time:
    precision: 3
    pad: 8
    memory:
    precision: 3
    pad: 8
    innerGlue: ":"
    outerGlue: "|"

    ## Generator settings ##
    generator:
    defaultConnection: default
    # Datasources as defined in database.connections
    connections:
    - default

    # A prefix to prepend to all table names
    tablePrefix:

    # Platform class name
    platformClass:

    # The package to use for the generated classes.
    # This affects the value of the @package phpdoc tag, and it also affects
    # the directory that the classes are placed in. By default this will be
    # the same as the project. Note that the target package (and thus the target
    # directory for generated classes) can be overridden in each `<database>` and
    # `<table>` element in the XML schema.
    #
    # DEPRECATED ? (this was used back in th 80's with php5.2)
    targetPackage:

    # Whether to join schemas using the same database name into a single schema.
    # This allows splitting schemas in packages, and referencing tables in another
    # schema (but in the same database) in a foreign key. Beware that database
    # behaviors will also be joined when this parameter is set to true.
    packageObjectModel: true

    # If you use namespaces in your schemas, this setting tells Propel to use the
    # namespace attribute for the package. Consequently, the namespace attribute
    # will also stipulate the subdirectory in which model classes get generated.
    namespaceAutoPackage: true

    schema:
    # The schema base name
    basename: schema
    # If your XML schema specifies SQL schemas for each table, you can copy the
    # value of the `schema` attribute to other attributes.
    # To copy the schema attribute to the package attribute, set this to true
    autoPackage: false
    # To copy the schema attribute to the namespace attribute, set this to true
    autoNamespace: false
    # To use the schema attribute as a prefix to all model phpNames, set this to true
    autoPrefix: false

    # Whether to transform the XML schema using the XSL file.
    # This was used in previous Propel versions to clean up the schema, but tended
    # to hide problems in the schema. It is disabled by default since Propel 1.5.
    # The default XSL file is located under `resources/xsl/database.xsl`
    # and you can use a custom XSL file by changing the `propel.schema.xsl.file`
    # property.
    transform: false

    ## Date/Time settings ##
    dateTime:

    # Enable full use of the DateTime class.
    # Setting this to true means that getter methods for date/time/timestamp
    # columns will return a DateTime object when the default format is empty.
    useDateTimeClass: true

    # Specify a custom DateTime subclass that you wish to have Propel use
    # for temporal values.
    dateTimeClass: DateTime

    # These are the default formats that will be used when fetching values from
    # temporal columns in Propel. You can always specify these when calling the
    # methods directly, but for methods like getByName() it is nice to change
    # the defaults.
    # To have these methods return DateTime objects instead, you should set these
    # to empty values
    defaultTimeStampFormat: Y-m-d H:i:s
    defaultTimeFormat: %X
    defaultDateFormat: %x

    objectModel:
    # Whether to add generic getter/setter methods.
    # Generic accessors are `getByName()`, `getByPosition(), ` and `toArray()`.
    addGenericAccessors: true
    # Generic mutators are `setByName()`, `setByPosition()`, and `fromArray()`.
    addGenericMutators: true
    emulateForeignKeyConstraints: false
    addClassLevelComment: true
    defaultKeyType: phpName
    addSaveMethod: true
    namespaceMap: Map

    # Whether to add a timestamp to the phpdoc header of generated OM classes.
    # If you use a versioning system, don't set this to true, or the classes
    # will be committed too often with just a date change.
    addTimeStamp: false

    # Whether to support pre- and post- hooks on `save()` and `delete()` methods.
    # Set to false if you never use these hooks for a small speed boost.
    addHooks: true

    # Some sort of "namespacing": All Propel classes with get the Prefix
    # "My_ORM_Prefix_" just like "My_ORM_Prefix_BookTableMap".
    # DEPRECATED ?
    classPrefix:

    # Identifier quoting may result in undesired behavior (especially in Postgres),
    # it can be disabled in DDL by setting this property to true in your build.properties file.
    disableIdentifierQuoting: false

    # Whether the generated `doSelectJoin*()` methods use LEFT JOIN or INNER JOIN
    # (see ticket:491 and ticket:588 to understand more about why this might be
    # important).
    useLeftJoinsInDoJoinMethods: true

    # Pluralizer class (used to generate plural forms)
    pluralizerClass: \Propel\Common\Pluralizer\StandardEnglishPluralizer
    # Use StandardEnglishPluralizer instead of DefaultEnglishPluralizer for better pluralization
    # (Handles uncountable and irregular nouns)

    # Builder classes
    builders:
    object: \Propel\Generator\Builder\Om\ObjectBuilder
    objectstub: \Propel\Generator\Builder\Om\ExtensionObjectBuilder
    objectmultiextend: \Propel\Generator\Builder\Om\MultiExtendObjectBuilder
    tablemap: \Propel\Generator\Builder\Om\TableMapBuilder
    query: \Propel\Generator\Builder\Om\QueryBuilder
    querystub: \Propel\Generator\Builder\Om\ExtensionQueryBuilder
    queryinheritance: \Propel\Generator\Builder\Om\QueryInheritanceBuilder
    queryinheritancestub: \Propel\Generator\Builder\Om\ExtensionQueryInheritanceBuilder
    interface: \Propel\Generator\Builder\Om\InterfaceBuilder
    # SQL builders
    datasql:
  6. @cristianoc72 cristianoc72 revised this gist Feb 20, 2014. 1 changed file with 210 additions and 224 deletions.
    434 changes: 210 additions & 224 deletions propel.yaml
    Original file line number Diff line number Diff line change
    @@ -1,226 +1,212 @@
    ## Sample Propel configuration file ##

    # NOTE: this is still in progress so something could change

    propel:

    ## General settings ##
    general:
    # The name of your project.
    # This affects names of generated files, etc.
    project:
    version: 2.0.0-dev

    # The package to use for the generated classes.
    # This affects the value of the @package phpdoc tag, and it also affects
    # the directory that the classes are placed in. By default this will be
    # the same as the project. Note that the target package (and thus the target
    # directory for generated classes) can be overridden in each `<database>` and
    # `<table>` element in the XML schema.
    targetPackage:

    # Whether to join schemas using the same database name into a single schema.
    # This allows splitting schemas in packages, and referencing tables in another
    # schema (but in the same database) in a foreign key. Beware that database
    # behaviors will also be joined when this parameter is set to true.
    packageObjectModel: true

    # If you use namespaces in your schemas, this setting tells Propel to use the
    # namespace attribute for the package. Consequently, the namespace attribute
    # will also stipulate the subdirectory in which model classes get generated.
    namespaceAutoPackage: true

    ## Date/Time settings ##
    dateTime:

    # Enable full use of the DateTime class.
    # Setting this to true means that getter methods for date/time/timestamp
    # columns will return a DateTime object when the default format is empty.
    useDateTimeClass: true

    # Specify a custom DateTime subclass that you wish to have Propel use
    # for temporal values.
    dateTimeClass: DateTime

    # These are the default formats that will be used when fetching values from
    # temporal columns in Propel. You can always specify these when calling the
    # methods directly, but for methods like getByName() it is nice to change
    # the defaults.
    # To have these methods return DateTime objects instead, you should set these
    # to empty values
    defaultTimeStampFormat: Y-m-d H:i:s
    defaultTimeFormat: %X
    defaultDateFormat: %x

    ### Directories and Filenames ###
    paths:
    # Directory where the project files (`build.properties`, `schema.xml`,
    # `runtime-conf.xml`, etc.) are located.
    # If you use the `propel-gen` script, this value will get overridden by
    # the path from which the script is called.
    # Default value is current path #
    projectDir: current_path

    # The directory where Propel expects to find your `schema.xml` file.
    schemaDir: current-path

    # The directory where Propel should output classes, sql, config, etc.
    outputDir: current-path/generated-classes

    # The directory where Propel should output generated object model classes.
    phpDir: current-path/generated-classes

    # The directory where Propel should output the compiled runtime configuration.
    phpConfDir: current-path/generated-conf

    # The directory where Propel should output the generated DDL (or data insert statements, etc.)
    sqlDir: current-path/generated-sql

    # Directory in which your composer.json resides
    composerDir:

    ## Runtime datasources settings ##
    #
    # This section replaces the old runtime-conf.xml file and it's also used by config:convert command
    runtime:
    defaultDatasource:

    # Array of datasources #
    datasources:
    dafault:
    adapter:
    # Connection class. While developing you could use Propel\Runtime\Connection\DebugPDO
    classname: Propel\Runtime\Connection\ConnectionWrapper
    dsn:
    user:
    password:
    # Driver options. See http://www.php.net/manual/en/pdo.construct.php
    # and http://www.php.net/manual/en/pdo.getattribute.php
    attributes:

    migrations:
    samePhpName: false
    addVendorInfo: false
    tableName: propel_migration
    parserClass:

    ## Buildtime settings ##
    buildtime:
    defaultDatasource:
    # Array of datasources
    # This section replace the old buildtime-conf.xml file and it is also used by sql:insert command
    datasources:
    dafault:
    adapter:
    connection:
    # Connection class. While developing you could use Propel\Runtime\Connection\DebugPDO
    classname: Propel\Runtime\Connection\ConnectionWrapper
    dsn:
    user:
    password:
    # Driver options. See http://www.php.net/manual/en/pdo.construct.php
    # and http://www.php.net/manual/en/pdo.getattribute.php
    attributes:

    # A prefix to prepend to all table names
    tablePrefix:

    # Platform class name
    platformClass:

    schema:
    # The schema base name
    basename: schema
    # If your XML schema specifies SQL schemas for each table, you can copy the
    # value of the `schema` attribute to other attributes.
    # To copy the schema attribute to the package attribute, set this to true
    autoPackage: false
    # To copy the schema attribute to the namespace attribute, set this to true
    autoNamespace: false
    # To use the schema attribute as a prefix to all model phpNames, set this to true
    autoPrefix: false

    # Whether to transform the XML schema using the XSL file.
    # This was used in previous Propel versions to clean up the schema, but tended
    # to hide problems in the schema. It is disabled by default since Propel 1.5.
    # The default XSL file is located under `resources/xsl/database.xsl`
    # and you can use a custom XSL file by changing the `propel.schema.xsl.file`
    # property.
    transform: false



    objectModel:
    # Whether to add generic getter/setter methods.
    # Generic accessors are `getByName()`, `getByPosition(), ` and `toArray()`.
    addGenericAccessors: true
    # Generic mutators are `setByName()`, `setByPosition()`, and `fromArray()`.
    addGenericMutators: true
    emulateForeignKeyConstraints: false
    addClassLevelComment: true
    defaultKeyType: phpName
    addSaveMethod: true
    namespaceMap: Map

    # Whether to add a timestamp to the phpdoc header of generated OM classes.
    # If you use a versioning system, don't set this to true, or the classes
    # will be committed too often with just a date change.
    addTimeStamp: false

    # Whether to support pre- and post- hooks on `save()` and `delete()` methods.
    # Set to false if you never use these hooks for a small speed boost.
    addHooks: true

    # Some sort of "namespacing": All Propel classes with get the Prefix
    # "My_ORM_Prefix_" just like "My_ORM_Prefix_BookTableMap".
    classPrefix:

    # Identifier quoting may result in undesired behavior (especially in Postgres),
    # it can be disabled in DDL by setting this property to true in your build.properties file.
    disableIdentifierQuoting: false

    # Whether the generated `doSelectJoin*()` methods use LEFT JOIN or INNER JOIN
    # (see ticket:491 and ticket:588 to understand more about why this might be
    # important).
    useLeftJoinsInDoJoinMethods: true

    # Pluralizer class (used to generate plural forms)
    pluralizerClass: \Propel\Common\Pluralizer\StandardEnglishPluralizer
    # Use StandardEnglishPluralizer instead of DefaultEnglishPluralizer for better pluralization
    # (Handles uncountable and irregular nouns)

    # Builder classes
    builders:
    object: \Propel\Generator\Builder\Om\ObjectBuilder
    objectstub: \Propel\Generator\Builder\Om\ExtensionObjectBuilder
    objectmultiextend: \Propel\Generator\Builder\Om\MultiExtendObjectBuilder
    tablemap: builder.om.TableMapBuilder
    query: \Propel\Generator\Builder\Om\QueryBuilder
    querystub: \Propel\Generator\Builder\Om\ExtensionQueryBuilder
    queryinheritance: \Propel\Generator\Builder\Om\QueryInheritanceBuilder
    queryinheritancestub: \Propel\Generator\Builder\Om\ExtensionQueryInheritanceBuilder
    interface: builder.om.InterfaceBuilder
    # SQL builders
    datasql:

    ## Specific adapter settings
    adapters:
    ## Mysql ##
    mysql:
    tableType: InnoDB
    tableEngineKeyword: ENGINE

    ## Sqlite ##
    sqlite:
    foreigKey:
    tableAlteringWorkaround:

    ## Oracle ##
    oracle:
    autoincrementSequencePattern = ${table}_SEQ

    behaviors:
    # Behaviors are enabled on a per-table basis in the `schema.xml`. However, you
    # can add behaviors for all your schemas, provided that you define them in the
    # `propel.behavior.default` setting:
    default:
    ## NOTE: work in progress! Some properties could be removed

    ## General settings ##
    general:
    # The name of your project.
    # This affects names of generated files, etc.
    project:
    version: 2.0.0-dev

    ### Directories and Filenames ###
    paths:
    # Directory where the project files (`schema.xml`, etc.) are located.
    # Default value is current path #
    projectDir: current_path

    # The directory where Propel expects to find your `schema.xml` file.
    schemaDir: current-path

    # The directory where Propel should output classes, sql, config, etc.
    # Default value is current path #
    outputDir: current-path

    # The directory where Propel should output generated object model classes.
    phpDir: current-path/generated-classes

    # The directory where Propel should output the compiled runtime configuration.
    phpConfDir: current-path/generated-conf

    # The directory where Propel should output the generated DDL (or data insert statements, etc.)
    sqlDir: current-path/generated-sql

    # Directory in which your composer.json resides
    composerDir:

    ## All Database settings ##
    #
    # This section replaces the old runtime-conf.xml file and it's also used by config:convert command
    database:
    # All database sources
    connections:
    default:
    adapter:
    # Connection class. While developing you could use Propel\Runtime\Connection\DebugPDO
    classname: Propel\Runtime\Connection\ConnectionWrapper
    dsn:
    user:
    password:
    # Driver options. See http://www.php.net/manual/en/pdo.construct.php
    # and http://www.php.net/manual/en/pdo.getattribute.php
    attributes:

    ## Specific adapter settings
    adapters:
    ## Mysql ##
    mysql:
    tableType: InnoDB
    tableEngineKeyword: ENGINE

    ## Sqlite ##
    sqlite:
    foreigKey:
    tableAlteringWorkaround:

    ## Oracle ##
    oracle:
    autoincrementSequencePattern = ${table}_SEQ

    ## Migration settings ##
    migrations:
    samePhpName: false
    addVendorInfo: false
    tableName: propel_migration
    parserClass:

    ## Runtime settings ##
    runtime:
    defaultConnection: default
    # Datasources as defined in database.connections
    connections:
    - default

    ## Generator settings ##
    generator:
    defaultConnection: default
    # Datasources as defined in database.connections
    connections:
    - default

    # A prefix to prepend to all table names
    tablePrefix:

    # Platform class name
    platformClass:

    # The package to use for the generated classes.
    # This affects the value of the @package phpdoc tag, and it also affects
    # the directory that the classes are placed in. By default this will be
    # the same as the project. Note that the target package (and thus the target
    # directory for generated classes) can be overridden in each `<database>` and
    # `<table>` element in the XML schema.
    #
    # DEPRECATED ? (this was used back in th 80's with php5.2)
    targetPackage:

    # Whether to join schemas using the same database name into a single schema.
    # This allows splitting schemas in packages, and referencing tables in another
    # schema (but in the same database) in a foreign key. Beware that database
    # behaviors will also be joined when this parameter is set to true.
    packageObjectModel: true

    # If you use namespaces in your schemas, this setting tells Propel to use the
    # namespace attribute for the package. Consequently, the namespace attribute
    # will also stipulate the subdirectory in which model classes get generated.
    namespaceAutoPackage: true

    schema:
    # The schema base name
    basename: schema
    # If your XML schema specifies SQL schemas for each table, you can copy the
    # value of the `schema` attribute to other attributes.
    # To copy the schema attribute to the package attribute, set this to true
    autoPackage: false
    # To copy the schema attribute to the namespace attribute, set this to true
    autoNamespace: false
    # To use the schema attribute as a prefix to all model phpNames, set this to true
    autoPrefix: false

    # Whether to transform the XML schema using the XSL file.
    # This was used in previous Propel versions to clean up the schema, but tended
    # to hide problems in the schema. It is disabled by default since Propel 1.5.
    # The default XSL file is located under `resources/xsl/database.xsl`
    # and you can use a custom XSL file by changing the `propel.schema.xsl.file`
    # property.
    transform: false

    ## Date/Time settings ##
    dateTime:

    # Enable full use of the DateTime class.
    # Setting this to true means that getter methods for date/time/timestamp
    # columns will return a DateTime object when the default format is empty.
    useDateTimeClass: true

    # Specify a custom DateTime subclass that you wish to have Propel use
    # for temporal values.
    dateTimeClass: DateTime

    # These are the default formats that will be used when fetching values from
    # temporal columns in Propel. You can always specify these when calling the
    # methods directly, but for methods like getByName() it is nice to change
    # the defaults.
    # To have these methods return DateTime objects instead, you should set these
    # to empty values
    defaultTimeStampFormat: Y-m-d H:i:s
    defaultTimeFormat: %X
    defaultDateFormat: %x

    objectModel:
    # Whether to add generic getter/setter methods.
    # Generic accessors are `getByName()`, `getByPosition(), ` and `toArray()`.
    addGenericAccessors: true
    # Generic mutators are `setByName()`, `setByPosition()`, and `fromArray()`.
    addGenericMutators: true
    emulateForeignKeyConstraints: false
    addClassLevelComment: true
    defaultKeyType: phpName
    addSaveMethod: true
    namespaceMap: Map

    # Whether to add a timestamp to the phpdoc header of generated OM classes.
    # If you use a versioning system, don't set this to true, or the classes
    # will be committed too often with just a date change.
    addTimeStamp: false

    # Whether to support pre- and post- hooks on `save()` and `delete()` methods.
    # Set to false if you never use these hooks for a small speed boost.
    addHooks: true

    # Some sort of "namespacing": All Propel classes with get the Prefix
    # "My_ORM_Prefix_" just like "My_ORM_Prefix_BookTableMap".
    # DEPRECATED ?
    classPrefix:

    # Identifier quoting may result in undesired behavior (especially in Postgres),
    # it can be disabled in DDL by setting this property to true in your build.properties file.
    disableIdentifierQuoting: false

    # Whether the generated `doSelectJoin*()` methods use LEFT JOIN or INNER JOIN
    # (see ticket:491 and ticket:588 to understand more about why this might be
    # important).
    useLeftJoinsInDoJoinMethods: true

    # Pluralizer class (used to generate plural forms)
    pluralizerClass: \Propel\Common\Pluralizer\StandardEnglishPluralizer
    # Use StandardEnglishPluralizer instead of DefaultEnglishPluralizer for better pluralization
    # (Handles uncountable and irregular nouns)

    # Builder classes
    builders:
    object: \Propel\Generator\Builder\Om\ObjectBuilder
    objectstub: \Propel\Generator\Builder\Om\ExtensionObjectBuilder
    objectmultiextend: \Propel\Generator\Builder\Om\MultiExtendObjectBuilder
    tablemap: \Propel\Generator\Builder\Om\TableMapBuilder
    query: \Propel\Generator\Builder\Om\QueryBuilder
    querystub: \Propel\Generator\Builder\Om\ExtensionQueryBuilder
    queryinheritance: \Propel\Generator\Builder\Om\QueryInheritanceBuilder
    queryinheritancestub: \Propel\Generator\Builder\Om\ExtensionQueryInheritanceBuilder
    interface: \Propel\Generator\Builder\Om\InterfaceBuilder
    # SQL builders
    datasql:
  7. @cristianoc72 cristianoc72 created this gist Feb 17, 2014.
    226 changes: 226 additions & 0 deletions propel.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,226 @@
    ## Sample Propel configuration file ##

    # NOTE: this is still in progress so something could change

    propel:

    ## General settings ##
    general:
    # The name of your project.
    # This affects names of generated files, etc.
    project:
    version: 2.0.0-dev

    # The package to use for the generated classes.
    # This affects the value of the @package phpdoc tag, and it also affects
    # the directory that the classes are placed in. By default this will be
    # the same as the project. Note that the target package (and thus the target
    # directory for generated classes) can be overridden in each `<database>` and
    # `<table>` element in the XML schema.
    targetPackage:

    # Whether to join schemas using the same database name into a single schema.
    # This allows splitting schemas in packages, and referencing tables in another
    # schema (but in the same database) in a foreign key. Beware that database
    # behaviors will also be joined when this parameter is set to true.
    packageObjectModel: true

    # If you use namespaces in your schemas, this setting tells Propel to use the
    # namespace attribute for the package. Consequently, the namespace attribute
    # will also stipulate the subdirectory in which model classes get generated.
    namespaceAutoPackage: true

    ## Date/Time settings ##
    dateTime:

    # Enable full use of the DateTime class.
    # Setting this to true means that getter methods for date/time/timestamp
    # columns will return a DateTime object when the default format is empty.
    useDateTimeClass: true

    # Specify a custom DateTime subclass that you wish to have Propel use
    # for temporal values.
    dateTimeClass: DateTime

    # These are the default formats that will be used when fetching values from
    # temporal columns in Propel. You can always specify these when calling the
    # methods directly, but for methods like getByName() it is nice to change
    # the defaults.
    # To have these methods return DateTime objects instead, you should set these
    # to empty values
    defaultTimeStampFormat: Y-m-d H:i:s
    defaultTimeFormat: %X
    defaultDateFormat: %x

    ### Directories and Filenames ###
    paths:
    # Directory where the project files (`build.properties`, `schema.xml`,
    # `runtime-conf.xml`, etc.) are located.
    # If you use the `propel-gen` script, this value will get overridden by
    # the path from which the script is called.
    # Default value is current path #
    projectDir: current_path

    # The directory where Propel expects to find your `schema.xml` file.
    schemaDir: current-path

    # The directory where Propel should output classes, sql, config, etc.
    outputDir: current-path/generated-classes

    # The directory where Propel should output generated object model classes.
    phpDir: current-path/generated-classes

    # The directory where Propel should output the compiled runtime configuration.
    phpConfDir: current-path/generated-conf

    # The directory where Propel should output the generated DDL (or data insert statements, etc.)
    sqlDir: current-path/generated-sql

    # Directory in which your composer.json resides
    composerDir:

    ## Runtime datasources settings ##
    #
    # This section replaces the old runtime-conf.xml file and it's also used by config:convert command
    runtime:
    defaultDatasource:

    # Array of datasources #
    datasources:
    dafault:
    adapter:
    # Connection class. While developing you could use Propel\Runtime\Connection\DebugPDO
    classname: Propel\Runtime\Connection\ConnectionWrapper
    dsn:
    user:
    password:
    # Driver options. See http://www.php.net/manual/en/pdo.construct.php
    # and http://www.php.net/manual/en/pdo.getattribute.php
    attributes:

    migrations:
    samePhpName: false
    addVendorInfo: false
    tableName: propel_migration
    parserClass:

    ## Buildtime settings ##
    buildtime:
    defaultDatasource:
    # Array of datasources
    # This section replace the old buildtime-conf.xml file and it is also used by sql:insert command
    datasources:
    dafault:
    adapter:
    connection:
    # Connection class. While developing you could use Propel\Runtime\Connection\DebugPDO
    classname: Propel\Runtime\Connection\ConnectionWrapper
    dsn:
    user:
    password:
    # Driver options. See http://www.php.net/manual/en/pdo.construct.php
    # and http://www.php.net/manual/en/pdo.getattribute.php
    attributes:

    # A prefix to prepend to all table names
    tablePrefix:

    # Platform class name
    platformClass:

    schema:
    # The schema base name
    basename: schema
    # If your XML schema specifies SQL schemas for each table, you can copy the
    # value of the `schema` attribute to other attributes.
    # To copy the schema attribute to the package attribute, set this to true
    autoPackage: false
    # To copy the schema attribute to the namespace attribute, set this to true
    autoNamespace: false
    # To use the schema attribute as a prefix to all model phpNames, set this to true
    autoPrefix: false

    # Whether to transform the XML schema using the XSL file.
    # This was used in previous Propel versions to clean up the schema, but tended
    # to hide problems in the schema. It is disabled by default since Propel 1.5.
    # The default XSL file is located under `resources/xsl/database.xsl`
    # and you can use a custom XSL file by changing the `propel.schema.xsl.file`
    # property.
    transform: false



    objectModel:
    # Whether to add generic getter/setter methods.
    # Generic accessors are `getByName()`, `getByPosition(), ` and `toArray()`.
    addGenericAccessors: true
    # Generic mutators are `setByName()`, `setByPosition()`, and `fromArray()`.
    addGenericMutators: true
    emulateForeignKeyConstraints: false
    addClassLevelComment: true
    defaultKeyType: phpName
    addSaveMethod: true
    namespaceMap: Map

    # Whether to add a timestamp to the phpdoc header of generated OM classes.
    # If you use a versioning system, don't set this to true, or the classes
    # will be committed too often with just a date change.
    addTimeStamp: false

    # Whether to support pre- and post- hooks on `save()` and `delete()` methods.
    # Set to false if you never use these hooks for a small speed boost.
    addHooks: true

    # Some sort of "namespacing": All Propel classes with get the Prefix
    # "My_ORM_Prefix_" just like "My_ORM_Prefix_BookTableMap".
    classPrefix:

    # Identifier quoting may result in undesired behavior (especially in Postgres),
    # it can be disabled in DDL by setting this property to true in your build.properties file.
    disableIdentifierQuoting: false

    # Whether the generated `doSelectJoin*()` methods use LEFT JOIN or INNER JOIN
    # (see ticket:491 and ticket:588 to understand more about why this might be
    # important).
    useLeftJoinsInDoJoinMethods: true

    # Pluralizer class (used to generate plural forms)
    pluralizerClass: \Propel\Common\Pluralizer\StandardEnglishPluralizer
    # Use StandardEnglishPluralizer instead of DefaultEnglishPluralizer for better pluralization
    # (Handles uncountable and irregular nouns)

    # Builder classes
    builders:
    object: \Propel\Generator\Builder\Om\ObjectBuilder
    objectstub: \Propel\Generator\Builder\Om\ExtensionObjectBuilder
    objectmultiextend: \Propel\Generator\Builder\Om\MultiExtendObjectBuilder
    tablemap: builder.om.TableMapBuilder
    query: \Propel\Generator\Builder\Om\QueryBuilder
    querystub: \Propel\Generator\Builder\Om\ExtensionQueryBuilder
    queryinheritance: \Propel\Generator\Builder\Om\QueryInheritanceBuilder
    queryinheritancestub: \Propel\Generator\Builder\Om\ExtensionQueryInheritanceBuilder
    interface: builder.om.InterfaceBuilder
    # SQL builders
    datasql:

    ## Specific adapter settings
    adapters:
    ## Mysql ##
    mysql:
    tableType: InnoDB
    tableEngineKeyword: ENGINE

    ## Sqlite ##
    sqlite:
    foreigKey:
    tableAlteringWorkaround:

    ## Oracle ##
    oracle:
    autoincrementSequencePattern = ${table}_SEQ

    behaviors:
    # Behaviors are enabled on a per-table basis in the `schema.xml`. However, you
    # can add behaviors for all your schemas, provided that you define them in the
    # `propel.behavior.default` setting:
    default: