Code Duplication    Length = 12-12 lines in 2 locations

src/eXpansion/Bundle/LocalRecords/Model/Base/Record.php 1 location

@@ 920-931 (lines=12) @@
917
                    $this->setUpdatedAt(\Propel\Runtime\Util\PropelDateTime::createHighPrecision());
918
                }
919
            }
920
            if ($ret) {
921
                $affectedRows = $this->doSave($con);
922
                if ($isInsert) {
923
                    $this->postInsert($con);
924
                } else {
925
                    $this->postUpdate($con);
926
                }
927
                $this->postSave($con);
928
                RecordTableMap::addInstanceToPool($this);
929
            } else {
930
                $affectedRows = 0;
931
            }
932
933
            return $affectedRows;
934
        });

src/eXpansion/Framework/PlayersBundle/Model/Base/Player.php 1 location

@@ 819-830 (lines=12) @@
816
            } else {
817
                $ret = $ret && $this->preUpdate($con);
818
            }
819
            if ($ret) {
820
                $affectedRows = $this->doSave($con);
821
                if ($isInsert) {
822
                    $this->postInsert($con);
823
                } else {
824
                    $this->postUpdate($con);
825
                }
826
                $this->postSave($con);
827
                PlayerTableMap::addInstanceToPool($this);
828
            } else {
829
                $affectedRows = 0;
830
            }
831
832
            return $affectedRows;
833
        });