Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
FactoryGirl
Provider
Doctrine
FixtureFactory
setSingleton
FactoryGirl\Provider\Doctrine\FixtureFactory::setSingleton PHP Method
FixtureFactory Class Documentation
Show file
Open project: breerly/factory-girl-php
setSingleton()
public
method
This causes
get($name)
to return
$entity
.
public
setSingleton
(
$name
,
$entity
)
public function setSingleton($name, $entity) { $this->singletons[$name] = $entity; }
FixtureFactory
__construct
addNamespace
checkFieldOverrides
createCollectionFrom
defineEntity
get
getAsSingleton
getEntityNamespace
getList
persistOnGet
setEntityNamespace
setField
setSingleton
unsetSingleton
updateCollectionSideOfAssocation