On Sep 20, 2006, at 7:21 PM, John Siracusa wrote:

> 1. Override load() in your common base class and check is_deleted()  
> before

> 2. Override get_objects() in a custom Manager subclass and then  
> base all

good ideas.  I'll give that a shot

> straightforward and predictable.  (What if I *want* to load "deleted"
> records?)  The subclassing method is explicit; all's fair in your own

i was thinking that you'd have a different relationship defined.  but  
i can see how that would cause issues with things that are defined  
not in relationships, but in class overrides.

Here's my last idea for object classes....

I've been doing a lot of object loading, and every now and then i  
need to get at the raw sql, which can be confusing as right now ,  
with_objects/require_objects works as such:

        require_objects => [ 'a' , 'b' , 'c' ]
        with_objects => [ 'd' , 'e' , 'f' ]

        and things number from t[1] ( $class ) , require_objects, with_objects  

        so i was fooling around the other night, and I think i can trivially  
patch querybuilder to do this:

        table_alias=> 'user',
        requre_objects=> [
                'a'=> 'A1',
                'b'=> 'B1',
                'c'=> 'C1',
        ],

        or even

        with_objects => [
                'd',
                [ 'e'=> 'E1' ],
                'f',
        ]

        which would allow for custom mapping of table aliases


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to