When deleting sfGuardPlugin user you get an exception raised saying
The user profile class "sfGuardUserProfile" does not exist.
stack trace
* at ()
in SF_ROOT_DIR/plugins/sfGuardPlugin/lib/model/sfGuardUser.php line 84 ...
81. $profileClass = sfConfig::get('app_sf_guard_plugin_profile_class', 'sfGuardUserProfile');
82. if (!class_exists($profileClass))
83. {
84. throw new sfException(sprintf('The user profile class "%s" does not exist.', $profileClass));
85. }
86.
87. $fieldName = sfConfig::get('app_sf_guard_plugin_profile_field_name', 'user_id');
This is caused by plugins/sfGuardPlugin/lib/model/sfGuardUser.php:251
if ($profile = $this->getProfile())
{
$profile->delete();
}
public function getProfile()
{
if (null === $this->profile)
{
$profileClass = sfConfig::get('app_sf_guard_plugin_profile_class', 'sfGuardUserProfile');
if (!class_exists($profileClass))
{
throw new sfException(sprintf('The user profile class "%s" does not exist.', $profileClass));
}
The getProfile() function should only delete profile if exist, by default the profile is not used in the sfGuardPlugin, so getProfile() must not raise exception if the profile is not used.