Show
Ignore:
Timestamp:
07/21/08 22:28:48 (6 months ago)
Author:
jwage
Message:

fix so abstract classes are not instantiated.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/Node.php

    r4460 r4700  
    8181            while ( ! $subclasses = $table->getOption('subclasses')) { 
    8282                $class = get_parent_class($class); 
     83                $reflectionClass = new ReflectionClass($class); 
     84                if ($reflectionClass->isAbstract()) { 
     85                    continue; 
     86                } 
    8387                if ($class == 'Doctrine_Record') { 
    8488                    throw new Doctrine_Node_Exception("No subclasses specified. You are "