Permalink
Browse files

Removed non-zero validation from Entities - it will make interacting …

…with the Repositories a whole lot easier (I think).
  • Loading branch information...
1 parent a2f7fc8 commit 0400462808cfac715737f2ebad24aa9c5d92be3e @bennadel committed Aug 5, 2012
Showing with 0 additions and 41 deletions.
  1. +0 −21 wwwroot/models/entities/Account.cfc
  2. +0 −20 wwwroot/models/entities/Task.cfc
@@ -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 ){
@@ -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.