Hi,

Please find the code below

===================================================================================
if($this->getUser()->getAttribute('allnames'))
{
   $current_name = $this->getUser()->getAttribute('allnames');

   $token = strtok($current_name, ",");
   $msubject = "Invitation for the meeting-Date:".$startdate." Start
Time:".$stime." Room:".$room_tuple->getName();

   $c = new Criteria();
   $c->add(EmployeeTablePeer::NAME,$token);

   try
   {
       $par_tuple = EmployeeTablePeer::doSelectOne($c);
   }
   catch(PropelException $e)
   {
      $this->redirect('login/logindberror');
   }
   $val = $par_tuple->getEmpId();
===================================================================================

I get the error for the line above -

"Fatal Error: Call to a member function getEmpId() on a non-object in
/opt/lampp/htdocs/crb/apps/tool/modules/book/actions/actions.class.php at
line 2370 which is the highlighted pink line above.

My opinion
========
My point is that session between web browser and server has been broken
hence the $this->getUser()->getAttribute('allnames'); is returning a null
value but if it is null then we should get PropelException.

--~--~---------~--~----~------------~-------~--~----~
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