我需要将子字符串移动到时间戳字段中。但如果我编译它,我会得到错误号
RNF7416 - EVAL操作中表达式右侧和左侧的操作数类型不匹配。
守则:
use Doctrine\ORM\Mapping as ORM;
/**
* Filter
*
* * @ORM\Entity(repositoryClass="loic\FilterBundle\Entity\FilterRepository")
* @ORM\Table(name="filter", uniqueConstraints={@ORM\UniqueConstraint(name="idfilter_UNIQUE", columns={"idfilter"})}, indexes={@ORM\Index(name="fk_filter_filter_category1_idx", columns={"filter_category_idfilter_category"})})
*/
class Filter
{
/**
* @var integer
*
* @ORM\Column(name="idfilter", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $idfilter;
............
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\ManyToMany(targetEntity="loic\ContentBundle\Entity\Content", mappedBy="filterfilter")
*/
private $contentcontent;
.....
/**
* Constructor
*/
public function __construct()
{
$this->contentcontent = new \Doctrine\Common\Collections\ArrayCollection();
$this->user = new \Doctrine\Common\Collections\ArrayCollection();
$this->status = 1;
}
......
/**
*
* @return the \Doctrine\Common\Collections\Collection
*/
public function getContentcontent() {
return $this->contentcontent;
}
/**
*
* @param
* $contentcontent
*/
public function setContentcontent($contentcontent) {
$this->contentcontent = $contentcontent;
return $this;
}
有人知道如何将%SUBST(NEWDS:01:26)转换为时间戳吗?
答案 0 :(得分:6)
我相信这应该做
tstamp =%timestamp(%SUBST(NEWDS:01:26))
您需要将其转换为时间戳