Development

#2607 ([PATCH] Make sfGuardUser capable of automatically retieving profile columns)

You must first sign up to be able to contribute.

Ticket #2607 (new enhancement)

Opened 8 months ago

[PATCH] Make sfGuardUser capable of automatically retieving profile columns

Reported by: francois Assigned to: fabien
Priority: minor Milestone:
Component: sfGuardPlugin Version: 1.0.9
Keywords: Cc:
Qualification: Unreviewed

Description

To get a profile information from the session object, I can do in the action:

$this->getUser()->getProfile()->getEmail();
// Which is a synonym for
$this->getUser()->getGuardUser()->getProfile()->getEmail();

But what if my starting point is the user class, and not the session class? I must do:

$guard_user->getProfile()->getEmail();

It would be very convenient to be able to do:

$guard_user->getEmail();

This is mostly useful for writing fixtures and for checking additional data of a user (think of how sfFeed guesses user email via the user object).

Attachments

PluginsfGuardUser.patch (0.8 kB) - added by francois on 11/30/07 18:42:48.

Change History

11/30/07 18:42:48 changed by francois

  • attachment PluginsfGuardUser.patch added.