Doctrine 1

MSSQL Server: Inserting blank records throws exception / Invalid casting of bound query parameters in sub-selects.