uginroot/doctrine-type-location
Composer 安装命令:
composer require uginroot/doctrine-type-location
包简介
Php doctrine type location
README 文档
README
Doctrine location type from this Location class
Install
composer request uginroot/doctrine-type-location:^1.2
Example
Registration type
# config/packages/doctrine.yaml doctrine: dbal: types: Location: 'Uginroot\DoctrineTypeLocation\LocationDoctrineType'
Use type
use Uginroot\PhpLocation\Location; use Doctrine\ORM\Mapping as ORM; class User{ // ... /** * @ORM\Column(type="Location") * @var Location|null */ private $location; /** * @return Location|null */ public function getLocation(): ?Location{ return $this->location; } /** * @param Location|null $location * @return $this */ public function setLocation(?Location $location):self { $this->location = $location; return $this; } }
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-16