src/RunOpenCode/Bundle/DoctrineNamingStrategy/NamingStrategy/UnderscoredBundleNamePrefix.php 1 location
|
@@ 62-71 (lines=10) @@
|
| 59 |
|
/** |
| 60 |
|
* {@inheritdoc} |
| 61 |
|
*/ |
| 62 |
|
public function classToTableName($className) |
| 63 |
|
{ |
| 64 |
|
$prefix = $this->getTableNamePrefix($className); |
| 65 |
|
|
| 66 |
|
if (strpos($className, '\\') !== false) { |
| 67 |
|
$className = substr($className, strrpos($className, '\\') + 1); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
return $prefix.$this->underscore($className); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
/** |
| 74 |
|
* {@inheritdoc} |
src/RunOpenCode/Bundle/DoctrineNamingStrategy/NamingStrategy/UnderscoredClassNamespacePrefix.php 1 location
|
@@ 77-86 (lines=10) @@
|
| 74 |
|
/** |
| 75 |
|
* {@inheritdoc} |
| 76 |
|
*/ |
| 77 |
|
public function classToTableName($className) |
| 78 |
|
{ |
| 79 |
|
$prefix = $this->getTableNamePrefix($className); |
| 80 |
|
|
| 81 |
|
if (strpos($className, '\\') !== false) { |
| 82 |
|
$className = substr($className, strrpos($className, '\\') + 1); |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
return $prefix.$this->underscore($className); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
/** |
| 89 |
|
* {@inheritdoc} |