Re: [CDBI] new reserved words in 3.0.11?
[prev]
[thread]
[next]
[Date index for 2005/11/03]
--===============0019593358==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="Yylu36WmvOXNoKYn"
Content-Disposition: inline
--Yylu36WmvOXNoKYn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, 03 Nov 2005, Christopher H. Laco wrote:
> Patrik Wallstrom wrote:
> > Is the word "type" a new reserved word in the 3 series of Class::DBI?
> >=20
> I hope not. I've to a field named type littered throughout Handel.
> So far, I've only tested up to 3.0.10...
When I look at it a bit closer it seems like the new accessor_name_for
does something I am not used to. There are some more fields that does
not show up at all. At least if I don't change the accessor name for
that field other than lowercase it like this:
sub accessor_name_for
{
my($class,$column) =3D @_;
$column =3D~ s/^(parameter_name|person)_id$/$1/i;
return lc $column;
}
this is the object...
$VAR1 =3D bless( {
'person_id' =3D> undef,
'name' =3D> 'example.scalar',
'type' =3D> '1',
'from_date' =3D> '0000-00-00 00:00:00',
'parameter_name_id' =3D> '1',
'to_date' =3D> undef
}, 'SECore::DB::Parameter' );
=2E..and this is the Columns for this object:
$VAR2 =3D bless( {
'name' =3D> 'NAME',
'_groups' =3D> {
'Essential' =3D> 1
},
'mutator' =3D> 'NAME',
'placeholder' =3D> '?',
'accessor' =3D> 'name'
}, 'Class::DBI::Column' );
But ... I don't seem to have an accessor (that I can access anyway)
with the name "name" (or "type" in my previous question). I have only
got accessors for the has_a and has_many in the above
accessor_name_for. I am very confused.
--=20
patrik_wallstrom->foodfight->pawal@xxxxx.xxx->+46-733173956
--Yylu36WmvOXNoKYn
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDahfPXP9l7Jnf3xURAgsCAJ9S5b1vnNuYYXgYdo3XEc8pq8cxuwCeLTMX
a2dnygjpzTXJ0MkjsJjorGY=
=BYPG
-----END PGP SIGNATURE-----
--Yylu36WmvOXNoKYn--
--===============0019593358==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi
--===============0019593358==--
|
(message missing)
|