Development

HowToCallVariablePropelMethod (diff)

You must first sign up to be able to contribute.

Changes between Version 1 and Version 2 of HowToCallVariablePropelMethod

Show
Ignore:
Author:
Kris.Wallsmith (IP: 24.21.162.19)
Timestamp:
09/15/07 18:06:00 (10 years ago)
Comment:

Changed method of determining peer class to support Propel STI.

Legend:

Unmodified
Added
Removed
Modified
  • HowToCallVariablePropelMethod

    v1 v2  
    1414public function doSelect($class, $column, $value) 
    1515{ 
    16   $class  = $class.'Peer'
     16  $class  = get_class(call_user_func(array(new $class, 'getPeer')))
    1717  $column = strtoupper($column); 
    1818