Ejemplo n.º 1
0
 public function joinTableName($sourceEntity, $targetEntity, $propertyName = null)
 {
     if (Strings::endsWith($targetEntity, '::dynamic')) {
         $targetEntity = $this->detectTargetEntity($sourceEntity, $propertyName);
     }
     if (Strings::endsWith($sourceEntity, '::dynamic')) {
         $sourceEntity = $this->detectTargetEntity($targetEntity, $propertyName);
     }
     return strtolower($this->classToNamespace($sourceEntity)) . '_' . parent::joinTableName($sourceEntity, $targetEntity, $propertyName);
 }
Ejemplo n.º 2
0
 public function classToTableName($className)
 {
     $tableName = parent::classToTableName($className);
     return $this->prependTablePrefix($tableName, $className);
 }