public function fetchAllJoin($key = null,$condition = null) 
	{
		if($condition == null)
		{
			$resultSet = $this->getDbTable()->fetchAll();
			}
			else
			{
				$resultSet = $this->getDbTable()->search($key,$condition);
				}
		
		$entries = array();
		
		foreach($resultSet as $row){
			$entry = new Pment_Models_Material();
			$entry->setMtrId($row->mtrId)
				->setPlanId($row->planId)
				->setType($row->type)
				->setMName($row->mName)
				->setUnit($row->unit)
				->setSpec($row->spec)
				->setAmount($row->amount)
				->setInDate($row->inDate)
				->setAmountc($row->amountc)
				->setAmountf($row->amountf)
				->setCost($row->cost)
				->setCostTotal($row->costTotal)
				->setBudget($row->budget)
				->setBudgetTotal($row->budgetTotal)
				->setRemark($row->remark)
				->setVendorName($row->vendorName);
			$entries[] = $entry;
			}
		return $entries;
		}