For some reason propel is not generating model for view tables, it doesn't even include the structure of the view table if you use the reverse
task. So I have no option but to use a custom query. That I know how to do if the model exists:
<?php
$con = Propel::getConnection(BookPeer::DATABASE_NAME);
$sql = "complicated query here...";
$stmt = $con->prepare($sql);
$stmt->execute();
but since propel does not generate a model for my view table, i don't know how to do that. I've tried this but it doesn't work
<?php
$con = Propel::getConnection(MyViewTable::DATABASE_NAME);
$sql = "SELECT * FROM MyViewTable";
$stmt = $con->prepare($sql);
$stmt->execute();
I really need to have this work. Please help :)