public function rows()
	{
		$rows = parent::rows();

		// Now remove any associative fields
		foreach ($rows as $row)
		{
			$associatives = new \stdClass();

			foreach ($row->getAttributes() as $k => $v)
			{
				if (strpos($k, 'associative_') === 0)
				{
					$key = substr($k, 12);
					$associatives->$key = $v;
					$row->removeAttribute($k);
				}
			}

			if (!empty($associatives))
			{
				$row->associated = $associatives;
			}
		}

		return $rows;
	}
public function rows()
	{
		$rows = parent::rows();

		// Now remove any associative fields
		foreach ($rows as $row)
		{
			$associatives = new \stdClass();

			foreach ($row->getAttributes() as $k => $v)
			{
				if (strpos($k, 'associative_') === 0)
				{
					$key = substr($k, 12);
					$associatives->$key = $v;
					$row->removeAttribute($k);
				}
			}

			if (!empty($associatives))
			{
				$row->associated = $associatives;
			}
		}

		return $rows;
	}
public function rows ( ) { $ rows = parent :: rows ( ) ; // Now remove any associative fields foreach ( $ rows as $ row ) { $ associatives = new \ stdClass ( ) ; foreach ( $ row -> getAttributes ( ) as $ k => $ v ) { if ( strpos ( $ k , 'associative_' ) === 0 ) { $ key = substr ( $ k , 12 ) ; $ associatives -> $ key = $ v ; $ row -> removeAttribute ( $ k ) ; } } if ( ! empty ( $ associatives ) ) { $ row -> associated = $ associatives ; } } return $ rows ; }
Fetches the results of relationship

@return  \Hubzero\Database\Relational
@since   2.0.0
Fetches the results of relationship