我想从列值为 的uid所有行中获取列的city值london。
我试过这样:
$this->getDoctrine()->getRepository(Personal::class)->findOneBy(['city' => 'london']);
但后来我只从 1 行得到一个对象。我需要的只是一个看起来像这样的数组:
数组(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) }
慕尼黑的夜晚无繁华
拉风的咖菲猫
人到中年有点甜
随时随地看视频慕课网APP