<?php

//$class = $class_first = 'bom_department';
//$$class = $$class_first = &$bom_department;
//$class_second = 'bom_dept_res_assignment';
//$$class_second = &$bom_dept_res_assignment;
$bom_dept_res_assignment = new bom_dept_res_assignment();
$bom_dept_res_assignment_object = array();
if (!empty($$class->bom_department_id)) {
 if (($bom_dept_res_assignment->findBy_parentId($$class->bom_department_id))) {
	$bom_dept_res_assignment_object = $bom_dept_res_assignment->findBy_parentId($$class->bom_department_id);
 } else {
	array_push($bom_dept_res_assignment_object, $bom_dept_res_assignment);
 }
} else {
 array_push($bom_dept_res_assignment_object, $bom_dept_res_assignment);
}

//pa(bom_dept_res_assignment::find_all());
?>
