Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
Phactory
Mongo
Phactory
setInflection
Phactory\Mongo\Phactory::setInflection PHP Method
Phactory Class Documentation
Exibir arquivo
Open project: chriskite/phactory
setInflection()
public
method
For example, if your collection of fish is called 'fishes', call setInflection('fish', 'fishes')
public
setInflection
(
$singular
,
$plural
)
$singular
singular form of the word.
$plural
plural form of the word.
public function setInflection($singular, $plural) { Inflector::addException($singular, $plural); }
Phactory
__construct
build
buildWithAssociations
create
createWithAssociations
define
defineBlueprint
embedsMany
embedsOne
get
getAll
getDb
recall
reset
setDb
setInflection