123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <?php
- namespace Doctrine\Tests\ORM\Functional\Ticket;
- /**
- * @group DDC-1695
- */
- class DDC1695Test extends \Doctrine\Tests\OrmFunctionalTestCase
- {
- public function testIssue()
- {
- if ($this->_em->getConnection()->getDatabasePlatform()->getName() != "sqlite") {
- $this->markTestSkipped("Only with sqlite");
- }
- $dql = "SELECT n.smallText, n.publishDate FROM " . __NAMESPACE__ . "\\DDC1695News n";
- $sql = $this->_em->createQuery($dql)->getSQL();
- $this->assertEquals(
- 'SELECT d0_."SmallText" AS SmallText0, d0_."PublishDate" AS PublishDate1 FROM "DDC1695News" d0_',
- $sql
- );
- }
- }
- /**
- * @Table(name="`DDC1695News`")
- * @Entity
- */
- class DDC1695News
- {
- /**
- * @var integer $idNews
- *
- * @Column(name="`IdNews`", type="integer", nullable=false)
- * @Id
- * @GeneratedValue
- */
- private $idNews;
- /**
- * @var bigint $iduser
- *
- * @Column(name="`IdUser`", type="bigint", nullable=false)
- */
- private $idUser;
- /**
- * @var integer $idLanguage
- *
- * @Column(name="`IdLanguage`", type="integer", nullable=false)
- */
- private $idLanguage;
- /**
- * @var integer $idCondition
- *
- * @Column(name="`IdCondition`", type="integer", nullable=true)
- */
- private $idCondition;
- /**
- * @var integer $idHealthProvider
- *
- * @Column(name="`IdHealthProvider`", type="integer", nullable=true)
- */
- private $idHealthProvider;
- /**
- * @var integer $idSpeciality
- *
- * @Column(name="`IdSpeciality`", type="integer", nullable=true)
- */
- private $idSpeciality;
- /**
- * @var integer $idMedicineType
- *
- * @Column(name="`IdMedicineType`", type="integer", nullable=true)
- */
- private $idMedicineType;
- /**
- * @var integer $idTreatment
- *
- * @Column(name="`IdTreatment`", type="integer", nullable=true)
- */
- private $idTreatment;
- /**
- * @var string $title
- *
- * @Column(name="`Title`", type="string", nullable=true)
- */
- private $title;
- /**
- * @var string $smallText
- *
- * @Column(name="`SmallText`", type="string", nullable=true)
- */
- private $smallText;
- /**
- * @var string $longText
- *
- * @Column(name="`LongText`", type="string", nullable=true)
- */
- private $longText;
- /**
- * @var datetimetz $publishDate
- *
- * @Column(name="`PublishDate`", type="datetimetz", nullable=true)
- */
- private $publishDate;
- /**
- * @var tsvector $idxNews
- *
- * @Column(name="`IdxNews`", type="tsvector", nullable=true)
- */
- private $idxNews;
- /**
- * @var boolean $highlight
- *
- * @Column(name="`Highlight`", type="boolean", nullable=false)
- */
- private $highlight;
- /**
- * @var integer $order
- *
- * @Column(name="`Order`", type="integer", nullable=false)
- */
- private $order;
- /**
- * @var boolean $deleted
- *
- * @Column(name="`Deleted`", type="boolean", nullable=false)
- */
- private $deleted;
- /**
- * @var boolean $active
- *
- * @Column(name="`Active`", type="boolean", nullable=false)
- */
- private $active;
- /**
- * @var boolean $updateToHighlighted
- *
- * @Column(name="`UpdateToHighlighted`", type="boolean", nullable=true)
- */
- private $updateToHighlighted;
- }
|