This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# FROZEN_SF_LIB_DIR: /usr/share/php/symfony | |
require_once dirname(__FILE__).'/../lib/symfony/autoload/sfCoreAutoload.class.php'; | |
sfCoreAutoload::register(); | |
class ProjectConfiguration extends sfProjectConfiguration | |
{ | |
public function setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Post: | |
actAs: | |
Timestampable: ~ | |
columns: | |
content: text | |
relations: | |
Comments: | |
class: Comment | |
local: id | |
foreign: post_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# default values | |
all: | |
.nodes: | |
node_root: | |
node1: 1 | |
node2: 2 | |
node3: [1,2,3,4] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//...snip | |
$q = Doctrine_Query::create()->from('Post p, p.Comments c')->select('p.*, c.*, COUNT(c.id) AS comment_count')->having('comment_count <= p.max_comments'); | |
$q->getSql(); //produces '... HAVING a2__0 <= p.max_comments ...' | |
//instead of '... HAVING a2__0 <= a__max_comments ...' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Post: | |
actAs: | |
Bookmarkable: | |
owner: User | |
#... | |
User: | |
columns: | |
username: string(10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BlackListPhone: | |
phone_1: | |
code: 123 | |
phone: 111 | |
Contents: [content_1] | |
phone_2: | |
code: 123 | |
phone: 222 | |
phone_3: | |
code: 123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Model extends BaseModel | |
{ | |
public function getPrice($format = null) | |
{ | |
return is_null($format)?$this->_get('price'):sprintf($format, $this->_get('price')); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Match: | |
columns: | |
#...skip | |
relations: | |
Participants: | |
local: match_id | |
foreign: player_id | |
refClass: MatchPlayer | |
foreignAlias: MatchesPlayed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
features: | |
- extensibility | |
- robustness | |
- vibrancy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void testDefaultConstruction() | |
{ | |
Foo foo = new Foo(); | |
assertNotNull(foo); | |
} |
OlderNewer