init without trunk
This commit is contained in:
parent
ed24ac4994
commit
bb809e7233
14652 changed files with 177862 additions and 94817 deletions
55
vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Document/Translation.php
vendored
Normal file
55
vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Document/Translation.php
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
|
||||
namespace Gedmo\Translator\Document;
|
||||
|
||||
use Gedmo\Translator\Translation as BaseTranslation;
|
||||
use Doctrine\ODM\MongoDB\Mapping\Annotations\MappedSuperclass;
|
||||
use Doctrine\ODM\MongoDB\Mapping\Annotations\Id;
|
||||
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
|
||||
|
||||
/**
|
||||
* Document translation class.
|
||||
*
|
||||
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*
|
||||
* @MappedSuperclass
|
||||
*/
|
||||
abstract class Translation extends BaseTranslation
|
||||
{
|
||||
/**
|
||||
* @Id
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
/**
|
||||
* @var string $locale
|
||||
*
|
||||
* @ODM\Field(type="string")
|
||||
*/
|
||||
protected $locale;
|
||||
|
||||
/**
|
||||
* @var string $property
|
||||
*
|
||||
* @ODM\Field(type="string")
|
||||
*/
|
||||
protected $property;
|
||||
|
||||
/**
|
||||
* @var string $value
|
||||
*
|
||||
* @ODM\Field(type="string")
|
||||
*/
|
||||
protected $value;
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return integer $id
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue