在Doctrine我可以:
$q = Doctrine_Query::create()
->from('One o')
->where('t.text = ?', 'aaa')
->andWhere('h.text = ?', 'bbb')
->leftJoin('o.Two t')
->leftJoin('t.Three h')
->leftJoin('h.Four f')
->execute();
Run Code Online (Sandbox Code Playgroud)
我怎样才能在Symfony 1的Propel中做到这一点?
2012年3月:
9 27 28 29 1 2 3 4
10 5 6 7 8 9 10 11
11 12 13 14 15 16 17 18
12 19 20 21 22 23 24 25
13 26 27 28 29 30 31
Run Code Online (Sandbox Code Playgroud)
第一列这是一年中的数字周 - 在php 日期("W") ; 我在数据库MySQL中:
id | count | date
1 | 2 | 2012-02-28 11:11:11 // 9 week
2 | 4 | 2012-02-29 11:11:11 // 9 week
3 | 5 | 2012-03-01 11:11:11 // 9 week
4 | …Run Code Online (Sandbox Code Playgroud) <table id="here" border="1">
<tr><td>London</td><td>london@us.uk</td><td>aaa</td><td>aaa</td></tr>
<tr><td>Manchester</td><td>manchester@us.uk</td><td>aaa</td><td>aaa</td></tr>
<tr><td>Liverpool</td><td>liverpool@us.uk</td><td>aaa</td><td>aaa</td></tr>
<tr><td>Ipswich</td><td>ipswich@us.uk</td><td>aaa</td><td>aaa</td></tr>
</table>
Run Code Online (Sandbox Code Playgroud)
是否可以添加链接mailto:对于带有jQuery的电子邮件地址的第二列(不是修改HTML)?如果有,怎么样?
<div class="main">
<a title="here" href="http://google.com">google.com</a>
<a title="sss" href="www.sss.com">sss</a>
<a title="sss" href="www.sss.com">sss</a>
<a title="sss" href="www.sss.com">sss</a>
<a class="click" href="#">check site</a>
</div>
<div class="main">
<a title="here" href="http://stackoverflow">stackoverflow</a>
<a title="sss" href="www.sss.com">sss</a>
<a title="sss" href="www.sss.com">sss</a>
<a title="sss" href="www.sss.com">sss</a>
<a class="click" href="#">check site</a>
</div>
<div class="main">
<a title="here" href="http://cnn.com">cnn.com</a>
<a title="sss" href="www.sss.com">sss</a>
<a title="sss" href="www.sss.com">sss</a>
<a title="sss" href="www.sss.com">sss</a>
<a class="click" href="#">check site</a>
</div>
Run Code Online (Sandbox Code Playgroud)
我写:
$(".click").click(function(){
alert($(this).parent().filter("[title=here]").attr('href'));
})
Run Code Online (Sandbox Code Playgroud)
但这显示我未定义.如何从当前的DIV获取当前站点?