public function objectsFromIndexes(IObjectSetWithIdentityByIndex $objects) : ObjectArrayFieldBuilder
    {
        return (new ObjectArrayFieldBuilder($this
            ->type(new ArrayOfObjectIdsType(
                $objects,
                Field::element()->objectFromIndex($objects)->required()->build(),
                $loadAsObjects = true
            ))
        ));
    }
public function objectsFromIndexes(IObjectSetWithIdentityByIndex $objects) : ObjectArrayFieldBuilder
    {
        return (new ObjectArrayFieldBuilder($this
            ->type(new ArrayOfObjectIdsType(
                $objects,
                Field::element()->objectFromIndex($objects)->required()->build(),
                $loadAsObjects = true
            ))
        ));
    }
public function objectsFromIndexes ( IObjectSetWithIdentityByIndex $ objects ) : ObjectArrayFieldBuilder { return ( new ObjectArrayFieldBuilder ( $ this -> type ( new ArrayOfObjectIdsType ( $ objects , Field :: element ( ) -> objectFromIndex ( $ objects ) -> required ( ) -> build ( ) , $ loadAsObjects = true ) ) ) ) ; }
Validates the input as an array of indexes from the supplied object set
and will load the object instances.

@param IObjectSetWithIdentityByIndex $objects

@return ObjectArrayFieldBuilder
Validates the input as an array of indexes from the supplied object set and will load the object instances .