Re: [CDBI] new reserved words in 3.0.11?

[prev] [thread] [next] [Date index for 2005/11/04]

From: Patrik Wallstrom
Subject: Re: [CDBI] new reserved words in 3.0.11?
Date: 11:36 on 04 Nov 2005
--===============0780683421==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="RYJh/3oyKhIjGcML"
Content-Disposition: inline


--RYJh/3oyKhIjGcML
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Did anybody understand what I meant in this mail?

With the example objects below in version 3.0.11, I can't access
method $object->name or $object->type, only those accessors which
actually changed name in accessor_name_for.

On Thu, 03 Nov 2005, Patrik Wallstrom wrote:

> On Thu, 03 Nov 2005, Christopher H. Laco wrote:
>=20
> > 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...
>=20
> 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:
>=20
>=20
> sub accessor_name_for
> {
>     my($class,$column) =3D @_;
>     $column =3D~ s/^(parameter_name|person)_id$/$1/i;
>     return lc $column;
> }
>=20
> this is the object...
>=20
> $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' );
>=20
> ...and this is the Columns for this object:
>=20
> $VAR2 =3D bless( {
>                  'name' =3D> 'NAME',
>                  '_groups' =3D> {
>                                 'Essential' =3D> 1
>                               },
>                  'mutator' =3D> 'NAME',
>                  'placeholder' =3D> '?',
>                  'accessor' =3D> 'name'
>                }, 'Class::DBI::Column' );
>=20
> 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

--=20
patrik_wallstrom->foodfight->pawal@xxxxx.xxx->+46-733173956

--RYJh/3oyKhIjGcML
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)

iD8DBQFDa0emXP9l7Jnf3xURAjanAJ92cAzphavvxFzVj62RK9WeRh8nZgCbBLC1
lcp1VS+wl2SAUECT8WEj7pE=
=I0a/
-----END PGP SIGNATURE-----

--RYJh/3oyKhIjGcML--


--===============0780683421==
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

--===============0780683421==--

(message missing)

[CDBI] new reserved words in 3.0.11?
Patrik Wallstrom 12:33 on 03 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Christopher H. Laco 13:43 on 03 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Patrik Wallstrom 13:59 on 03 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Patrik Wallstrom 11:36 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
William Ross 12:36 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
William Ross 12:56 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Dave Howorth 13:10 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Jay Strauss 13:31 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Dave Howorth 13:47 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Matt S Trout 13:58 on 03 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Dave Howorth 13:14 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
William Ross 13:31 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
William Ross 13:28 on 04 Nov 2005

Generated at 20:55 on 09 Nov 2005 by mariachi v0.52