Propel do not remove table prefix on reverse command. #744

Open
mklemarczyk opened this Issue Aug 25, 2013 · 0 comments

Comments

Projects
None yet
1 participant

When I run reverse in propel cli, propel do not remove teble prefix in schema.xml.
After I run om command, and propel add next prefix in OM classes.

Example:
build.properties:

[...]
propel.tablePrefix = my_
[...]

tables in db: my_code, my_users, my_roles

reverse

schema.xml:

<table name="my_code" phpName="MyCode" idMethod="native">
<table name="my_users" phpName="MyUsers" idMethod="native">
<table name="my_roles" phpName="MyRoles" idMethod="native">

om

om classes:

abstract class BaseMyCodePeer
{
    /** the table name for this class */
    const TABLE_NAME = 'my_my_code';

abstract class BaseMyUsersPeer
{
    /** the table name for this class */
    const TABLE_NAME = 'my_my_users';

abstract class BaseMyRolesPeer
{
    /** the table name for this class */
    const TABLE_NAME = 'my_my_roles';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment