Skip to content

Commit

Permalink
Removed non-zero validation from Entities - it will make interacting …
Browse files Browse the repository at this point in the history
…with the Repositories a whole lot easier (I think).
  • Loading branch information
bennadel committed Aug 5, 2012
1 parent a2f7fc8 commit 0400462
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
21 changes: 0 additions & 21 deletions wwwroot/models/entities/Account.cfc
Expand Up @@ -56,27 +56,6 @@ component
}


// I set the ID property.
function setID( Numeric id ){

// Validate id.
if (id == 0){

throw(
type = "InvalidArgument",
message = "ID must be non-zero."
);

}

variables.id = id;

// Return this object reference for method chaining.
return( this );

}


// I set the name property.
function setName( String name ){

Expand Down
20 changes: 0 additions & 20 deletions wwwroot/models/entities/Task.cfc
Expand Up @@ -149,24 +149,4 @@ component
}


// I set the ID property.
function setID( Numeric id ){

// Validate id.
if (id == 0){

throw(
type = "InvalidArgument",
message = "ID must be non-zero."
);

}

variables.id = id;

// Return this object reference for method chaining.
return( this );

}

}

0 comments on commit 0400462

Please sign in to comment.