Skip to content

Commit

Permalink
removed hack output
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Herrlinger authored and shustariov-andrey committed Jan 4, 2014
1 parent 184b70c commit bbcbefc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/persistence.store.sql.js
Expand Up @@ -652,11 +652,9 @@ function config(persistence, dialect) {
joinSql += this._additionalJoinSqls.join(' ');

for ( var i = 0; i < this._prefetchFields.length; i++) {
console.log(this._prefetchFields[i]);
var prefetchFieldParts = this._prefetchFields[i].split('.');
var prefetchField = prefetchFieldParts[0];
var eName = entityName;
//console.log(prefetchField, eName);
if(prefetchFieldParts.length > 1){
prefetchField = prefetchFieldParts[1];
eName = prefetchFieldParts[0];
Expand Down Expand Up @@ -712,7 +710,6 @@ function config(persistence, dialect) {
var e = rowToEntity(session, entityName, r, mainPrefix);
for ( var j = 0; j < that._prefetchFields.length; j++) {

console.log(that._prefetchFields[j]);
var prefetchFieldParts = that._prefetchFields[j].split('.');
var prefetchField = prefetchFieldParts[0];
var eName = entityName;
Expand All @@ -723,7 +720,6 @@ function config(persistence, dialect) {
var theMeta = persistence.getMeta(eName);
var thisMeta = theMeta.hasOne[prefetchField].type.meta;

console.log(thisMeta.name, prefetchField, eName);
e._data_obj[prefetchField] = rowToEntity(session, thisMeta.name, r, prefetchField + '_');
session.add(e._data_obj[prefetchField]);
}
Expand Down

0 comments on commit bbcbefc

Please sign in to comment.