On Wed 23 Jul 2008 05:26:45 PM EDT, Oleg Broytmann wrote:
> On Wed, Jul 23, 2008 at 09:04:10PM +0000, Matthew Wilson wrote:
>> The byName lookup raises an SQLObjectNotFound exception.
>
>    I don't see how you can misinterpret this. There is no 'Sales'
> department in the DB, so why do you expect SQLObject magically finds one?!
>    .byName() is an "active" operation, it cannot be done lazily. You have
> to know in advance the id of the 'Sales' department.

So, if I wanted to make sure that some rows are always in the Sales
table, is there a recommended approach?

Matt


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to