Skip to content

Instantly share code, notes, and snippets.

View KendallHopkins's full-sized avatar

Kendall Hopkins KendallHopkins

View GitHub Profile
$review = ReviewQuery::create()
->joinWith('Review.Book')
->joinWith('Book.Author')
->joinWith('Book.Publisher')
->findOne();
$book = $review->getBook() // No additional query needed
$author = $book->getAuthor(); // No additional query needed
$publisher = $book->getPublisher(); // No additional query needed
public function save(PropelPDO $con = null)
{
if ($this->isDeleted()) {
throw new PropelException("You cannot save an object that has been deleted.");
}
if ($con === null) {
$con = Propel::getConnection(SF_model_forum_postPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);
}
<?php
$test_array = array(
'<a href="/test">' =>
'<a href="/test">',
'<a href="path/relative">' =>
'<a href="basepath/path/relative">',
'<a href="path/relative ">' =>