示例#1
0
 public function testGetParentAssociationMappings()
 {
     $parentAssociationMapping = array(0 => array('fieldName' => 'user', 'targetEntity' => 'Foo\\Bar\\User', 'joinColumns' => array(0 => array('name' => 'user_id', 'referencedColumnName' => 'user_id')), 'type' => 2, 'mappedBy' => null));
     $filter = new FooFilter();
     $this->assertSame(array(), $filter->getParentAssociationMappings());
     $filter->setOption('parent_association_mappings', $parentAssociationMapping);
     $this->assertSame($parentAssociationMapping, $filter->getParentAssociationMappings());
 }