/ Published in: Other
Expand |
Embed | Plain Text
<?php // sfPropelManyToMany /** * */ class ClassName extends AnotherClass { public function getHogehoge($name) { $c = new Criteria(); $c->add(HogehogePeer::ID, $id); $hogehoge = HogehogePeer::doSelectOne($c); if($hogehoge){ return sfPropelManyToMany::getRelatedObjects($hogehoge,'中間テーブル名'); } } }
You need to login to post a comment.
