/** * Returns the Model's Meta object. * @return Meta */ public static function getMeta() { return Parser::getMeta(get_called_class(), static::$_meta); }
/** * @expectedException \Exception * @expectedExceptionMessage Given primary key column [xxx] does not exist. */ public function testParserNonexistantPK() { $meta = $this->testMeta; $meta['pk'] = 'xxx'; Parser::getMeta('\\Phormium\\Tests\\Models\\Person', $meta); }