当前位置: 首页>>代码示例>>PHP>>正文


PHP Job::column方法代码示例

本文整理汇总了PHP中Job::column方法的典型用法代码示例。如果您正苦于以下问题:PHP Job::column方法的具体用法?PHP Job::column怎么用?PHP Job::column使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Job的用法示例。


在下文中一共展示了Job::column方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: testJoinWithProjection

 public function testJoinWithProjection()
 {
     $jp = new JoinProcessor(Job::getPeer());
     $jp->setFetchModes(array('PersonJob->Department' => 'join'));
     $jp->enterJoinContext();
     $this->assertEquals('select  PersonJob.job_id, PersonJob_Department.department_id from JOBS.job as start, JOBS.Person as PersonJob, JOBS.Department as PersonJob_Department where start.job_id *= PersonJob.job_id and PersonJob.department_id *= PersonJob_Department.department_id and  1 = 1', create(new Criteria())->setFetchmode(Fetchmode::join('PersonJob'))->setProjection(Projections::ProjectionList()->add(Job::column('PersonJob->job_id'))->add(Job::column('PersonJob->Department->department_id')))->getSelectQueryString($this->conn, $this->peer, $jp));
     $jp->leaveJoinContext();
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:8,代码来源:CriteriaTest.class.php

示例2: restrictionTest

 function restrictionTest()
 {
     $this->assertSQL('where job_id = ceil(asin(sin(0.125)))', 'where job_id = ceiling(asin(sin(0.125)))', 'where job_id = ceil(asin(sin(0.125)))', 'where job_id = php(\'ceil\', php(\'asin\', php(\'sin\', 0.125)))', create(new Criteria())->add(Restrictions::equal('job_id', SQLFunctions::ceil(SQLFunctions::asin(SQLFunctions::sin(0.125))))));
     $this->assertSQL('where job_id = ceil(asin(sin(0.125)))', 'where job_id = ceiling(asin(sin(0.125)))', 'where job_id = ceil(asin(sin(0.125)))', 'where job_id = php(\'ceil\', php(\'asin\', php(\'sin\', 0.125)))', create(new Criteria())->add(Restrictions::equal(Job::column('job_id'), SQLFunctions::ceil(SQLFunctions::asin(SQLFunctions::sin(0.125))))));
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:5,代码来源:SQLFunctionTest.class.php

示例3: executeWithRestriction

 public function executeWithRestriction()
 {
     $this->assertClass(create(new SelectQuery())->withRestriction(Job::column('job_id')->equal(5)), 'rdbms.query.SelectQuery');
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:4,代码来源:QueryTest.class.php

示例4: withProjectionTest

 function withProjectionTest()
 {
     $crit = new Criteria();
     $this->assertClass($crit->withProjection(Projections::property(Job::column('job_id'))), 'rdbms.Criteria');
     $this->assertFalse($crit->isProjection());
     $this->assertTrue($crit->withProjection(Projections::property(Job::column('job_id')))->isProjection());
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:7,代码来源:ProjectionTest.class.php

示例5: nonExistantRelative

 public function nonExistantRelative()
 {
     Job::column('NonExistant->person_id');
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:4,代码来源:DataSetTest.class.php


注:本文中的Job::column方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。