Hello all,

i'm developing an app with Symfony 1.4 (tag, not last svn version) and
Doctrine and i found a strange behavoir with the following code.

---- schema.yaml ---
User:
  columns:
    name:             { type: string(40), notnull: true }
    surname:          { type: string(40), notnull: true }
    email:            { type: string(40), notnull: true }
    fcode:            { type: string(16), notnull: true }
    last_login:       { type: timestamp, notnull: true }


--- .php ---

$user = Doctrine_Core::getTable( 'User' )->findOneById( 3 );

echo $user->getLastLogin(); // OK!
echo $user->getlast_login(); // OK!
echo $user->LastLogin; // ERROR: Unknown record property / related
component "LastLogin" on "User"
echo $user->last_login; // OK!
//echo $user["LastLogin"]; // ERROR: Unknown record property / related
component "LastLogin" on "User"
echo $user["last_login"]; //OK!

Is this a "bug" or, for some good reasons, is correct?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to