Overview

Namespaces

  • None
  • RedBeanPHP
    • Adapter
    • BeanHelper
    • Cursor
    • Driver
    • Logger
      • RDefault
    • QueryWriter
    • RedException
    • Repository
    • Util

Classes

  • ArrayTool
  • DispenseHelper
  • Dump
  • MultiLoader
  • Transaction
  • Overview
  • Namespace
  • Class

Class MultiLoader

Multi Bean Loader Helper

This code was originally part of the facade, however it has been decided to remove unique features to service classes like this to make them available to developers not using the facade class.

This helper class offers limited support for one-to-one relations by providing a service to load a set of beans with differnt types and a common ID.

Namespace: RedBeanPHP\Util
Copyright:

copyright (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community This source file is subject to the BSD/GPLv2 License that is bundled with this source code in the file license.txt.


License: BSD/GPLv2
Author: Gabor de Mooij and the RedBeanPHP Community
File: RedBeanPHP/Util/MultiLoader.php
Located at Util/MultiLoader.php
Methods summary
public static OODBBean
# load( RedBeanPHP\OODB $oodb, string|array $types, mixed $id )

Loads multiple types of beans with the same ID. This might look like a strange method, however it can be useful for loading a one-to-one relation.

Loads multiple types of beans with the same ID. This might look like a strange method, however it can be useful for loading a one-to-one relation.

Parameters

$oodb
OODB object
$types
the set of types to load at once
$id
the common ID

Returns

OODBBean
API documentation generated by ApiGen