Actualización

This commit is contained in:
Xes
2025-04-10 12:24:57 +02:00
parent 8969cc929d
commit 45420b6f0d
39760 changed files with 4303286 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace Test\Fixture\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
/**
* @ODM\Document
*/
class Article
{
/**
* @ODM\Id
*/
private $id;
/**
* @ODM\Field(type="string")
*/
private $title;
public function getId()
{
return $this->id;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
}

View File

@@ -0,0 +1,63 @@
<?php
namespace Test\Fixture\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
/**
* @ODM\Document
*/
class Image
{
/**
* @ODM\Id
*/
private $id;
/**
* @ODM\Field
*/
private $title;
/**
* @ODM\File
*/
private $file;
/**
* Set file.
*
* @param integer $file
* @return Image
*/
public function setFile($file)
{
$this->file = $file;
return $this;
}
/**
* Get file.
*
* @return integer
*/
public function getFile()
{
return $this->file;
}
public function getId()
{
return $this->id;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
}

View File

@@ -0,0 +1,51 @@
<?php
namespace Test\Fixture\Document\PHPCR;
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCR;
/**
* @PHPCR\Document
*/
class Article
{
/**
* @PHPCR\Id
*/
private $id;
/**
* @PHPCR\ParentDocument
*/
private $parent;
/**
* @PHPCR\Field(type="string")
*/
private $title;
public function getId()
{
return $this->id;
}
public function getParent()
{
return $this->parent;
}
public function setParent($parent)
{
$this->parent = $parent;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
}

View File

@@ -0,0 +1,53 @@
<?php
namespace Test\Fixture\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class Article
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(length=64)
*/
private $title;
/**
* @ORM\Column(type="boolean")
*/
private $enabled = true;
public function getId()
{
return $this->id;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
public function isEnabled()
{
return $this->enabled;
}
}

View File

@@ -0,0 +1,78 @@
<?php
namespace Test\Fixture\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class Composite
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(length=64)
*/
private $title;
/**
* @ORM\Id
* @ORM\Column(type="string")
*/
private $uid;
/**
* Sets uid.
*
* @param mixed $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* Returns uid.
*
* @return mixed
*/
public function getUid()
{
return $this->uid;
}
/**
* Sets Id.
*
* @param $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* Returns Id.
*
* @return integer
*/
public function getId()
{
return $this->id;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
}

View File

@@ -0,0 +1,95 @@
<?php
namespace Test\Fixture\Entity\Shop;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity
*/
class Product
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(length=64)
*/
private $title;
/**
* @ORM\Column(length=255, nullable=true)
*/
private $description;
/**
* @ORM\Column(type="float", nullable=false)
*/
private $price;
/**
* @ORM\ManyToMany(targetEntity="Tag")
*/
private $tags;
/**
* @ORM\Column(type="integer")
*/
private $numTags = 0;
public function __construct()
{
$this->tags = new ArrayCollection;
}
public function getId()
{
return $this->id;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setPrice($price)
{
$this->price = $price;
}
public function getPrice()
{
return $this->price;
}
public function addTag(Tag $tag)
{
$this->numTags++;
$this->tags[] = $tag;
}
public function getTags()
{
return $this->tags;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Test\Fixture\Entity\Shop;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class Tag
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(length=64)
*/
private $name;
public function getId()
{
return $this->id;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
}