Example #1
0
 public function testeInflectedTypedEntityName()
 {
     $db = new Db($this->conn);
     $schema = new SchemaDecorators\Typed(new SchemaDecorators\Inflected(new Schemas\Infered()), __NAMESPACE__);
     $mapper = new Mapper($db, $schema);
     $c66 = $mapper->postCategory[66]->fetch();
     $this->assertInstanceOf(__NAMESPACE__ . '\\PostCategory', $c66);
     $this->assertObjectHasAttribute('postId', $c66);
     $c66->categoryId = 3;
     $mapper->persist($c66);
     $mapper->flush();
 }