Changeset 950

Show
Ignore:
Timestamp:
10/01/07 23:05:36 (1 year ago)
Author:
mikey
Message:

bugfix: use correct reflection class

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/rdbms/persistence/eraser/stubDatabaseEraser.php

    r926 r950  
    8989        } 
    9090         
    91         $entityClass = (($entity instanceof stubObject) ? ($entity->getClass()) : (new stubReflectionClass($entity))); 
     91        $entityClass = (($entity instanceof stubObject) ? ($entity->getClass()) : (new stubReflectionObject($entity))); 
    9292        if ($entityClass->hasAnnotation('Entity') === false) { 
    9393            throw new stubPersistenceException('Class ' . $entity->getClassName() . ' is not an entity.');