Changeset 3159 for trunk

Show
Ignore:
Timestamp:
08/20/08 20:28:17 (3 months ago)
Author:
steevanb
Message:

Les DAO semi-automatiques ne sont plus obligés de définir une propriété pour être valides

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/utils/copix/dao/CopixDAODefinitionBuilder.class.php

    r2870 r3159  
    167167                $champAjoute[] = (isset ($field['fieldName'])) ? $field['fieldName'] : $field['name']; 
    168168            } 
    169             foreach ($fields as $field) { 
    170                 if (in_array ($field->name, $champAjoute)) { 
    171                     continue; 
    172                 } 
    173                 $definition->addProperty (new CopixPropertyForDAO ($field, $definition)); 
    174             } 
    175         } else { 
    176             throw new Exception (_i18n ('copix:dao.error.definitionfile.properties.missing')); 
    177         } 
     169        } 
     170        foreach ($fields as $field) { 
     171            if (in_array ($field->name, $champAjoute)) { 
     172                continue; 
     173            } 
     174            $definition->addProperty (new CopixPropertyForDAO ($field, $definition)); 
     175        } 
     176         
    178177        //Ajout des méthodes 
    179178        if (isset ($parsedFile->methods) && isset ($parsedFile->methods->method)) {