Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->Trips = Doctrine_Query::create()
- ->from('Trip t')
- ->leftJoin("t.Stretches s")
- ->leftJoin("t.Vehicle v")
- ->where('v.id = ?', $vehicle)
- ->andWhere('s.departure_time >= ?', $fecha_desde)
- ->andWhere('s.departure_time <= ?', $fecha_hasta)
- ->orWhere('s.arrival_time >= ?', $fecha_desde)
- ->andWhere('s.arrival_time <= ?', $fecha_hasta)
- ->fetchArray();
Add Comment
Please, Sign In to add comment