Essential columns defaults to All?
[prev]
[thread]
[next]
[Date index for 2004/06/22]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The POD says:
~ Essential are the minimal set of columns needed to load and use
~ the object. Only the columns in this group will be loaded when an
~ object is retrieve()d. It is typically used to save memory on a class
~ that has a lot of columns but where we mostly only use a few of them.
~ It will automatically be set to All if you dont set it yourself.
~ The Primary column is always part of your Essential group and
~ Class::DBI will put it there if you dont.
So if I don't set the Essential group explicitly, it should default
to All columns. But in testing that, it looks like it defaults to
the Primary group instead:
__PACKAGE__->columns(All => qw/
~ user_group_id
~ user_id
~ group_id
~ expires
~ creation_date
~ active
/);
print __PACKAGE__->_essential;
That just prints user_group_id. Am I misunderstanding?
Thanks,
Maurice
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFA2KCti9H06RwZ4N8RAhfzAJ444rxkf1hDtgIgLSFFvNEKhXypJQCfVbuk
JiqKxC4QYdFM5DyZzJM/prM=
=EjG5
-----END PGP SIGNATURE-----
|
Essential columns defaults to All?
Maurice Aubrey 21:12 on 22 Jun 2004
|