mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 19:11:07 +00:00
rename Tags entity
why did I delete this file? rename Tags entity rename Tags entity
This commit is contained in:
parent
8af35ad932
commit
653e8be4c1
4 changed files with 18 additions and 116 deletions
|
@ -18,11 +18,6 @@ login_check:
|
|||
logout:
|
||||
path: /logout
|
||||
|
||||
#wallabag_api:
|
||||
# resource: "@WallabagApiBundle/Controller/"
|
||||
# type: annotation
|
||||
# prefix: /api
|
||||
|
||||
rest :
|
||||
type : rest
|
||||
resource : "routing_rest.yml"
|
||||
|
|
|
@ -7,7 +7,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
|||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
use Wallabag\CoreBundle\Entity\Entry;
|
||||
use Wallabag\CoreBundle\Entity\Tags;
|
||||
use Wallabag\CoreBundle\Entity\Tag;
|
||||
use Wallabag\CoreBundle\Service\Extractor;
|
||||
|
||||
class WallabagRestController extends Controller
|
||||
|
@ -206,7 +206,7 @@ class WallabagRestController extends Controller
|
|||
* }
|
||||
* )
|
||||
*/
|
||||
public function deleteEntriesTagsAction(Entry $entry, Tags $tag)
|
||||
public function deleteEntriesTagsAction(Entry $entry, Tag $tag)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -229,7 +229,7 @@ class WallabagRestController extends Controller
|
|||
* }
|
||||
* )
|
||||
*/
|
||||
public function getTagAction(Tags $tag)
|
||||
public function getTagAction(Tag $tag)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -242,7 +242,7 @@ class WallabagRestController extends Controller
|
|||
* }
|
||||
* )
|
||||
*/
|
||||
public function deleteTagAction(Tags $tag)
|
||||
public function deleteTagAction(Tag $tag)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,28 +5,28 @@ namespace Wallabag\CoreBundle\Entity;
|
|||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Tags
|
||||
* Tag
|
||||
*
|
||||
* @ORM\Table(name="tags")
|
||||
* @ORM\Table(name="tag")
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class Tags
|
||||
class Tag
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer", nullable=false)
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="IDENTITY")
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="value", type="text", nullable=true)
|
||||
* @ORM\Column(name="label", type="text")
|
||||
*/
|
||||
private $value;
|
||||
private $label;
|
||||
|
||||
/**
|
||||
* Get id
|
||||
|
@ -39,24 +39,24 @@ class Tags
|
|||
}
|
||||
|
||||
/**
|
||||
* Set value
|
||||
* Set label
|
||||
*
|
||||
* @param string $value
|
||||
* @return Tags
|
||||
* @param string $label
|
||||
* @return Tag
|
||||
*/
|
||||
public function setValue($value)
|
||||
public function setLabel($label)
|
||||
{
|
||||
$this->value = $value;
|
||||
$this->label = $label;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get value
|
||||
* Get label
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValue()
|
||||
public function getLabel()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
|
@ -1,93 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Wallabag\CoreBundle\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* TagsEntries
|
||||
*
|
||||
* @ORM\Table(name="tags_entries")
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class TagsEntries
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer", nullable=false)
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="IDENTITY")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="entry_id", type="integer", nullable=true)
|
||||
*/
|
||||
private $entryId;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="tag_id", type="integer", nullable=true)
|
||||
*/
|
||||
private $tagId;
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set entryId
|
||||
*
|
||||
* @param integer $entryId
|
||||
* @return TagsEntries
|
||||
*/
|
||||
public function setEntryId($entryId)
|
||||
{
|
||||
$this->entryId = $entryId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get entryId
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getEntryId()
|
||||
{
|
||||
return $this->entryId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set tagId
|
||||
*
|
||||
* @param integer $tagId
|
||||
* @return TagsEntries
|
||||
*/
|
||||
public function setTagId($tagId)
|
||||
{
|
||||
$this->tagId = $tagId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tagId
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getTagId()
|
||||
{
|
||||
return $this->tagId;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue