The class that exhibits this structure is failing to insert into my db when i try save it.
I think the problem has something to do with expect types. This "Options" class when broken down into a binary blob might be picking the wrong sql param method when it goes to do the insert. The problem is definitely with the insert sql statement and facilitating parameter. The insert statement looks clean but I'm not sure the value bind is taking the correct approach.
This was just 1 way to do this as per your example.
- Code: Select all
qx::QxSqlQuery query("WHERE author.sex = :sex");
query.bind(":sex", author::female);
I'll see what else I can dig up.
Thanks