Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorkseguin
     
    Shouldn't Find and it's siblings be static? I've looked at a number of PHP frameworks, and they all seem to make, what I consider to be, this huge mistake. My background isn't in PHP, so maybe this is just a language constraint.

    Any insight?
    • CommentAuthorKaste
     

    it's a language constraint

    • CommentAuthorkseguin
     
    Is this because in the base static method (ActiveRecord::Find) you can't tell the actual calling type of the class?

    Reading on PHP 5.3's late static binding (http://ca.php.net/manual/en/language.oop5.late-static-bindings.php), I believe this might make the implementation possible by being able to resolve the actual calling type, ala: static::__CLASS__ or something.
    • CommentAuthorKaste
     

    we can't use future-features at present.

    because we have an ActiveRecord with super-mapping all around, the bigger issue is IMHO that the ActiveRecord-class tends to explode.

    (In the famous 'patterns'-book the ActiveRecord was a concrete class.)