(entity: AnyEntity)
| 58 | } |
| 59 | |
| 60 | static entityNotManaged(entity: AnyEntity): ValidationError { |
| 61 | return new ValidationError( |
| 62 | `Entity ${entity.constructor.name} is not managed. An entity is managed if its fetched from the database or registered as new through EntityManager.persist()`, |
| 63 | ); |
| 64 | } |
| 65 | |
| 66 | static notEntity(owner: AnyEntity, prop: EntityProperty, data: any): ValidationError { |
| 67 | const type = /\[object (\w+)]/.exec(Object.prototype.toString.call(data))![1].toLowerCase(); |
no outgoing calls
no test coverage detected