Beispiel #1
0
 /**
  * Returns the Model's Meta object.
  * @return Meta
  */
 public static function getMeta()
 {
     return Parser::getMeta(get_called_class(), static::$_meta);
 }
Beispiel #2
0
 /**
  * @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);
 }