Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1617

EntityGenerator does not create uniqueConstraints annotations

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: Tools
    • Security Level: All
    • Labels:
      None

      Description

      I have add some uniqueConstraints in ClassMetadataInfo but the EntityGenerator does not create the annotations for this.


      private function _generateTableAnnotation($metadata)
      {
          $table = array();
      
          if (isset($metadata->table['schema'])) {
               $table[] = 'schema="' . $metadata->table['schema'] . '"';
          }
      
          if (isset($metadata->table['name'])) {
              $table[] = 'name="' . $metadata->table['name'] . '"';
          }
      
          return '@' . $this->_annotationsPrefix . 'Table(' . implode(', ', $table) . ')';
      }
      
      

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            David Badura
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: