Doctrine 1
  1. Doctrine 1
  2. DC-1011

wierd behaviour with setTableName - table name doesn't get set

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Component/s: Record
    • Labels:
      None
    • Environment:
      Linux 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 19:00:26 UTC 2011 i686 GNU/Linux
      PHP 5.3.3-1ubuntu9.5

      Description

      if i create class called Attribute_set that extends Doctrine_Record and setTableName in setUpTableDefinintion like in documentation setting up models section, the table name appears not to be set
      getTableName returns "doctrine_record_abstract"

      any joins or relations fail.

      if i set it in the setUp function the setTableName appear working and returns "attribute_sets" table name. This only happens with this particular class, and relations have no effect.

      I attached class example i'm expiriencing problems with, that should help reproducte this issue

        Activity

        Hide
        Justinas added a comment -

        the problem appears to come from Doctrine Formatter

        Show
        Justinas added a comment - the problem appears to come from Doctrine Formatter
        Hide
        Justinas added a comment -

        fixed misstype and it appears that it was not the problem, i get the same:

        Base table or view not found: 1146 Table 'db.doctrine_record_abstract' doesn't exist

        maybe attribute_set is somekind reserved word in doctrine library ?

        Show
        Justinas added a comment - fixed misstype and it appears that it was not the problem, i get the same: Base table or view not found: 1146 Table 'db.doctrine_ record _abstract' doesn't exist maybe attribute_set is somekind reserved word in doctrine library ?

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Justinas
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: