Maslosoft Mangan API
Trait CollectionNameTrait
This trait contains default getCollectionName
implementation. It will first
try to get collection name from annotations, then it will fall back to
current class name with slashes renamed to dots.
Example auto generated collection name for class \ManganExamples\Model\User
:
ManganExamples.Model.User
Direct Known Users
Indirect Known Users
Maslosoft\Mangan\Example\ExampleUser
,
Maslosoft\Mangan\Model\Trash
,
Maslosoft\Mangan\Model\TrashItem
See:
Maslosoft\Mangan\Interfaces\CollectionNameInterface
Author: Piotr Maselkowski
Located at Traits/CollectionNameTrait.php
Methods summary
public
string
|
#
getCollectionName( )
This method must return collection name for use with this model. By default it uses full class name, with slashes replaced by dots. |