How would you have getStaff, that is called by:
<?php echo object_select_tag('staff_id', 'getStaff', array (
'related_class' => 'Contact',
'control_name' => 'staff_id',
'include_custom' => 'By',
'include_blank' => false,
)); ?>

to includei a value from $sf_user

I currently have
        static function getStaff($criteria = null, $con = null)
        {
                $criteria->add(self::CONTACTTYPE_ID,'3');
                if ($sf_user->getProgramId() > 0) {
                        $criteria->add(self::PROGRAM_ID, 
$sf_user->getProgramId());
                }

          $criteria->addDescendingOrderByColumn(self::LAST_NAME);

          return parent::doSelect($criteria, $con);

        }

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to