Markus Wolff wrote:
Victor Bolshov schrieb:One cannot simply port Rails-ActiveRecord to PHP (there are certain features used that are not yet implemented in PHP, possibly will be in PHP6).Hi Victor, Just out of curiosity: What features do you think these are? CU Markus
Basically, this is impossibility (in PHP) to get the class name inside of a static method:
class A {
static function func(){}
}
class B extends A {
}
B::func();// inside the func() method we *cannot* know that the caller
is class 'B'. It is *alwayse* 'A'.
Thus, the ROR approach (table methods are class methods, while row methods are instance methods) is unreachable.
Regards, Victor
smime.p7s
Description: S/MIME Cryptographic Signature
