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

        Justinas created issue -
        Justinas made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        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 ?
        Justinas made changes -
        Resolution Invalid [ 6 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Justinas made changes -
        Comment [ sorry misstype in function name ]
        Justinas made changes -
        Attachment attribute_set.php [ 11017 ]
        Justinas made changes -
        Attachment attribute_set.php [ 11018 ]
        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

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DC-1011, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated: