示例#1
0
 public function setEntity($entity, $key = '*')
 {
     if ('*' == $key) {
         $this->setParam('cv', $entity->getId());
     }
     return parent::setEntity($entity, $key);
 }
示例#2
0
 /**
  * @dataProvider provideEntities
  */
 public function testSetGetEntity($input, $key, $expected)
 {
     $this->target->setEntity($input, $key, $expected);
     $this->assertEquals($expected, $this->target->getEntity($key));
 }