Skip to content

Commit

Permalink
revert blacklist relation ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
lajosbencz committed Sep 7, 2019
1 parent 1000c40 commit 933b941
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/PhalconModelGenerator/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ public function initialize()
if (isset($this->_references[$tn])) {
foreach ($this->_references[$tn] as $tc => $refs) {
$tcn = preg_replace('/_id$/', '', $tc);
foreach ($refs as $rt => $refCols) {
if (!array_key_exists($rt, $this->_tables)) {
continue 2;
}
}
$an = Text::camelize($tcn);
foreach ($refs as $rt => $refCols) {
foreach ($refCols as $rc => $true) {
Expand All @@ -68,11 +63,6 @@ public function initialize()
foreach ($this->_references as $rt => $refCols) {
foreach ($refCols as $rc => $refs) {
$rcn = preg_replace('/_id$/', '', $rc);
foreach ($refs as $rt => $refCols) {
if (!array_key_exists($rt, $this->_tables)) {
continue 2;
}
}
$an = Text::camelize($rcn);
if (isset($refs[$tn])) {
foreach ($refs[$tn] as $tc => $true) {
Expand Down

0 comments on commit 933b941

Please sign in to comment.