getType() public method

\Jarves\ORM\ORMAbstract:: MANY_TO_ONE = 'nTo1', ONE_TO_MANY = '1ToN', ONE_TO_ONE = '1To1', MANY_TO_MANY = 'nToM';
public getType ( ) : string
return string
示例#1
0
文件: Propel.php 项目: jarves/jarves
 protected function addRelation(Object $object, RelationDefinitionInterface $relation, &$xmlTable)
 {
     $possibleRelations = [AbstractStorage::MANY_TO_ONE, AbstractStorage::ONE_TO_ONE];
     if (in_array($relation->getType(), $possibleRelations)) {
         $this->addForeignKey($object, $relation, $xmlTable);
     }
 }