프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$cacheComponent | Mongolid cache component object. | ||
$connectionPool | Mongolid connection pool being object. | ||
$container | Illuminate\Contracts\Container | Container being used by Mongolid. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$schemas | array | Stores the schemas that have been registered for later use. This may be useful when using Mongolid DataMapper pattern. | |
$singleton | Singleton instance of the manager. |
메소드 | 설명 | |
---|---|---|
addConnection ( |
Main entry point to openning a connection and start using Mongolid in pure PHP. After adding a connection into the Manager you are ready to persist and query your models. | |
getConnection ( ) : MongoDB\Client | Get the raw MongoDB connection. | |
getMapper ( string $entityClass ) : |
Retrieves a DataMapper for the given $entityClass. This can only be done if the Schema for that entity has been previously registered with registerSchema() method. | |
registerSchema ( |
Allow document Schemas to be registered for later use. | |
setEventTrigger ( Mongolid\Event\EventTriggerInterface $eventTrigger ) : void | Sets the event trigger for Mongolid events. |
메소드 | 설명 | |
---|---|---|
init ( ) : void | Initializes the Mongolid manager. |
public addConnection ( |
||
$connection | Connection instance to be used in database interactions. | |
리턴 | boolean | Success |
public getConnection ( ) : MongoDB\Client | ||
리턴 | MongoDB\Client |
public registerSchema ( |
||
$schema | Schema being registered. | |
리턴 | void |
public setEventTrigger ( Mongolid\Event\EventTriggerInterface $eventTrigger ) : void | ||
$eventTrigger | Mongolid\Event\EventTriggerInterface | External event trigger. |
리턴 | void |
public CacheComponent,Mongolid\Util $cacheComponent | ||
리턴 |
public Pool,Mongolid\Connection $connectionPool | ||
리턴 |
public Container,Illuminate\Contracts $container | ||
리턴 | Illuminate\Contracts\Container |
protected array $schemas | ||
리턴 | array |